Class DeviceManagementReusablePolicySetting

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

    public class DeviceManagementReusablePolicySetting
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Graph model for a reusable setting”
    • Constructor Detail

      • DeviceManagementReusablePolicySetting

        protected DeviceManagementReusablePolicySetting()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderDeviceManagementReusablePolicySetting

        public static DeviceManagementReusablePolicySetting.Builder builderDeviceManagementReusablePolicySetting()
        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
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

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

        public Optional<OffsetDateTime> getCreatedDateTime()
        “reusable setting creation date and time. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property createdDateTime
      • withCreatedDateTime

        public DeviceManagementReusablePolicySetting withCreatedDateTime​(OffsetDateTime createdDateTime)
        Returns an immutable copy of this with just the createdDateTime 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.

        “reusable setting creation date and time. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

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

        public Optional<String> getDescription()
        “reusable setting description supplied by user.”
        Returns:
        property description
      • withDescription

        public DeviceManagementReusablePolicySetting withDescription​(String description)
        Returns an immutable copy of this with just the description 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.

        “reusable setting description supplied by user.”

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

        public Optional<String> getDisplayName()
        “reusable setting display name supplied by user.”
        Returns:
        property displayName
      • withDisplayName

        public DeviceManagementReusablePolicySetting withDisplayName​(String displayName)
        Returns an immutable copy of this with just the displayName 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.

        “reusable setting display name supplied by user.”

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

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “date and time when reusable setting was last modified. This property is read- only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

        public DeviceManagementReusablePolicySetting withLastModifiedDateTime​(OffsetDateTime lastModifiedDateTime)
        Returns an immutable copy of this with just the lastModifiedDateTime 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.

        “date and time when reusable setting was last modified. This property is read- only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

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

        public Optional<Integer> getReferencingConfigurationPolicyCount()
        “count of configuration policies referencing the current reusable setting. Valid values 0 to 2147483647. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property referencingConfigurationPolicyCount
      • withReferencingConfigurationPolicyCount

        public DeviceManagementReusablePolicySetting withReferencingConfigurationPolicyCount​(Integer referencingConfigurationPolicyCount)
        Returns an immutable copy of this with just the referencingConfigurationPolicyCount 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.

        “count of configuration policies referencing the current reusable setting. Valid values 0 to 2147483647. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

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

        public Optional<String> getSettingDefinitionId()
        “setting definition id associated with this reusable setting.”
        Returns:
        property settingDefinitionId
      • withSettingDefinitionId

        public DeviceManagementReusablePolicySetting withSettingDefinitionId​(String settingDefinitionId)
        Returns an immutable copy of this with just the settingDefinitionId 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.

        “setting definition id associated with this reusable setting.”

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

        public DeviceManagementReusablePolicySetting withSettingInstance​(DeviceManagementConfigurationSettingInstance settingInstance)
        Returns an immutable copy of this with just the settingInstance 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.

        “reusable setting configuration instance”

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

        public Optional<Integer> getVersion()
        “version number for reusable setting. Valid values 0 to 2147483647. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property version
      • withVersion

        public DeviceManagementReusablePolicySetting withVersion​(Integer version)
        Returns an immutable copy of this with just the version 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.

        “version number for reusable setting. Valid values 0 to 2147483647. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

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

        public DeviceManagementConfigurationPolicyCollectionRequest getReferencingConfigurationPolicies()
        “configuration policies referencing the current reusable setting. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        navigational property referencingConfigurationPolicies
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public DeviceManagementReusablePolicySetting patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public DeviceManagementReusablePolicySetting put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected