Class DeviceCompliancePolicySettingState

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataType

    public class DeviceCompliancePolicySettingState
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “Device Compilance Policy Setting State for a given device.”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • currentValue

        protected String currentValue
      • errorCode

        protected Long errorCode
      • errorDescription

        protected String errorDescription
      • instanceDisplayName

        protected String instanceDisplayName
      • setting

        protected String setting
      • settingName

        protected String settingName
      • sourcesNextLink

        protected String sourcesNextLink
      • userEmail

        protected String userEmail
      • userId

        protected String userId
      • userName

        protected String userName
      • userPrincipalName

        protected String userPrincipalName
    • Constructor Detail

      • DeviceCompliancePolicySettingState

        protected DeviceCompliancePolicySettingState()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • getCurrentValue

        public Optional<String> getCurrentValue()
        “Current value of setting on device”
        Returns:
        property currentValue
      • withCurrentValue

        public DeviceCompliancePolicySettingState withCurrentValue​(String currentValue)
        Returns an immutable copy of this with just the currentValue field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Current value of setting on device”

        Parameters:
        currentValue - new value of currentValue field (as defined in service metadata)
        Returns:
        immutable copy of this with just the currentValue field changed
      • getErrorCode

        public Optional<Long> getErrorCode()
        “Error code for the setting”
        Returns:
        property errorCode
      • withErrorCode

        public DeviceCompliancePolicySettingState withErrorCode​(Long errorCode)
        Returns an immutable copy of this with just the errorCode field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Error code for the setting”

        Parameters:
        errorCode - new value of errorCode field (as defined in service metadata)
        Returns:
        immutable copy of this with just the errorCode field changed
      • getErrorDescription

        public Optional<String> getErrorDescription()
        “Error description”
        Returns:
        property errorDescription
      • withErrorDescription

        public DeviceCompliancePolicySettingState withErrorDescription​(String errorDescription)
        Returns an immutable copy of this with just the errorDescription field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Error description”

        Parameters:
        errorDescription - new value of errorDescription field (as defined in service metadata)
        Returns:
        immutable copy of this with just the errorDescription field changed
      • getInstanceDisplayName

        public Optional<String> getInstanceDisplayName()
        “Name of setting instance that is being reported.”
        Returns:
        property instanceDisplayName
      • withInstanceDisplayName

        public DeviceCompliancePolicySettingState withInstanceDisplayName​(String instanceDisplayName)
        Returns an immutable copy of this with just the instanceDisplayName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Name of setting instance that is being reported.”

        Parameters:
        instanceDisplayName - new value of instanceDisplayName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the instanceDisplayName field changed
      • getSetting

        public Optional<String> getSetting()
        “The setting that is being reported”
        Returns:
        property setting
      • withSetting

        public DeviceCompliancePolicySettingState withSetting​(String setting)
        Returns an immutable copy of this with just the setting field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The setting that is being reported”

        Parameters:
        setting - new value of setting field (as defined in service metadata)
        Returns:
        immutable copy of this with just the setting field changed
      • getSettingName

        public Optional<String> getSettingName()
        “Localized/user friendly setting name that is being reported”
        Returns:
        property settingName
      • withSettingName

        public DeviceCompliancePolicySettingState withSettingName​(String settingName)
        Returns an immutable copy of this with just the settingName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Localized/user friendly setting name that is being reported”

        Parameters:
        settingName - new value of settingName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the settingName field changed
      • getSources

        public com.github.davidmoten.odata.client.CollectionPage<SettingSource> getSources()
        “Contributing policies”
        Returns:
        property sources
      • getSources

        public com.github.davidmoten.odata.client.CollectionPage<SettingSource> getSources​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Contributing policies”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property sources
      • getState

        public Optional<ComplianceStatus> getState()
        “The compliance state of the setting”
        Returns:
        property state
      • withState

        public DeviceCompliancePolicySettingState withState​(ComplianceStatus state)
        Returns an immutable copy of this with just the state field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The compliance state of the setting”

        Parameters:
        state - new value of state field (as defined in service metadata)
        Returns:
        immutable copy of this with just the state field changed
      • getUserEmail

        public Optional<String> getUserEmail()
        “UserEmail”
        Returns:
        property userEmail
      • withUserEmail

        public DeviceCompliancePolicySettingState withUserEmail​(String userEmail)
        Returns an immutable copy of this with just the userEmail field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “UserEmail”

        Parameters:
        userEmail - new value of userEmail field (as defined in service metadata)
        Returns:
        immutable copy of this with just the userEmail field changed
      • getUserId

        public Optional<String> getUserId()
        “UserId”
        Returns:
        property userId
      • withUserId

        public DeviceCompliancePolicySettingState withUserId​(String userId)
        Returns an immutable copy of this with just the userId field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “UserId”

        Parameters:
        userId - new value of userId field (as defined in service metadata)
        Returns:
        immutable copy of this with just the userId field changed
      • getUserName

        public Optional<String> getUserName()
        “UserName”
        Returns:
        property userName
      • withUserName

        public DeviceCompliancePolicySettingState withUserName​(String userName)
        Returns an immutable copy of this with just the userName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “UserName”

        Parameters:
        userName - new value of userName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the userName field changed
      • getUserPrincipalName

        public Optional<String> getUserPrincipalName()
        “UserPrincipalName.”
        Returns:
        property userPrincipalName
      • withUserPrincipalName

        public DeviceCompliancePolicySettingState withUserPrincipalName​(String userPrincipalName)
        Returns an immutable copy of this with just the userPrincipalName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “UserPrincipalName.”

        Parameters:
        userPrincipalName - new value of userPrincipalName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the userPrincipalName field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
      • builder

        public static DeviceCompliancePolicySettingState.Builder builder()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class