Class DeviceManagementConfigurationPolicy

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

    public class DeviceManagementConfigurationPolicy
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Device Management Configuration Policy”
    • Constructor Detail

      • DeviceManagementConfigurationPolicy

        protected DeviceManagementConfigurationPolicy()
    • Method Detail

      • odataTypeName

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

        public static DeviceManagementConfigurationPolicy.Builder builderDeviceManagementConfigurationPolicy()
        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()
        “Policy creation date and time”
        Returns:
        property createdDateTime
      • withCreatedDateTime

        public DeviceManagementConfigurationPolicy 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.

        “Policy creation date and time”

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

        public Optional<String> getCreationSource()
        “Policy creation source”
        Returns:
        property creationSource
      • withCreationSource

        public DeviceManagementConfigurationPolicy withCreationSource​(String creationSource)
        Returns an immutable copy of this with just the creationSource 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.

        “Policy creation source”

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

        public Optional<String> getDescription()
        “Policy description”
        Returns:
        property description
      • withDescription

        public DeviceManagementConfigurationPolicy 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.

        “Policy description”

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

        public Optional<Boolean> getIsAssigned()
        “Policy assignment status. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property isAssigned
      • withIsAssigned

        public DeviceManagementConfigurationPolicy withIsAssigned​(Boolean isAssigned)
        Returns an immutable copy of this with just the isAssigned 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.

        “Policy assignment status. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

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

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “Policy last modification date and time”
        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

        public DeviceManagementConfigurationPolicy 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.

        “Policy last modification date and time”

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

        public Optional<String> getName()
        “Policy name”
        Returns:
        property name
      • withName

        public DeviceManagementConfigurationPolicy withName​(String name)
        Returns an immutable copy of this with just the name 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.

        “Policy name”

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

        public DeviceManagementConfigurationPolicy withPlatforms​(DeviceManagementConfigurationPlatforms platforms)
        Returns an immutable copy of this with just the platforms 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.

        “Platforms for this policy”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
        “List of Scope Tags for this Entity instance.”
        Returns:
        property roleScopeTagIds
      • withRoleScopeTagIds

        public DeviceManagementConfigurationPolicy withRoleScopeTagIds​(List<String> roleScopeTagIds)
        Returns an immutable copy of this with just the roleScopeTagIds 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.

        “List of Scope Tags for this Entity instance.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “List of Scope Tags for this Entity instance.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property roleScopeTagIds
      • getSettingCount

        public Optional<Integer> getSettingCount()
        “Number of settings”
        Returns:
        property settingCount
      • withSettingCount

        public DeviceManagementConfigurationPolicy withSettingCount​(Integer settingCount)
        Returns an immutable copy of this with just the settingCount 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.

        “Number of settings”

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

        public DeviceManagementConfigurationPolicy withTechnologies​(DeviceManagementConfigurationTechnologies technologies)
        Returns an immutable copy of this with just the technologies 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.

        “Technologies for this policy”

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

        public DeviceManagementConfigurationPolicy withTemplateReference​(DeviceManagementConfigurationPolicyTemplateReference templateReference)
        Returns an immutable copy of this with just the templateReference 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.

        “Template reference information”

        Parameters:
        templateReference - new value of templateReference field (as defined in service metadata)
        Returns:
        immutable copy of this with just the templateReference field changed
      • 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 DeviceManagementConfigurationPolicy 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 DeviceManagementConfigurationPolicy 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