Class DeviceManagementConfigurationPolicyTemplate

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

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

      • DeviceManagementConfigurationPolicyTemplate

        protected DeviceManagementConfigurationPolicyTemplate()
    • Method Detail

      • odataTypeName

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

        public static DeviceManagementConfigurationPolicyTemplate.Builder builderDeviceManagementConfigurationPolicyTemplate()
        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
      • getAllowUnmanagedSettings

        public Optional<Boolean> getAllowUnmanagedSettings()
        “Allow unmanaged setting templates”
        Returns:
        property allowUnmanagedSettings
      • withAllowUnmanagedSettings

        public DeviceManagementConfigurationPolicyTemplate withAllowUnmanagedSettings​(Boolean allowUnmanagedSettings)
        Returns an immutable copy of this with just the allowUnmanagedSettings 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.

        “Allow unmanaged setting templates”

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

        public Optional<String> getBaseId()
        “Template base identifier”
        Returns:
        property baseId
      • withBaseId

        public DeviceManagementConfigurationPolicyTemplate withBaseId​(String baseId)
        Returns an immutable copy of this with just the baseId 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 base identifier”

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

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

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

        “Template description”

        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()
        “Template display name”
        Returns:
        property displayName
      • withDisplayName

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

        “Template display name”

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

        public Optional<String> getDisplayVersion()
        “Description of template version”
        Returns:
        property displayVersion
      • withDisplayVersion

        public DeviceManagementConfigurationPolicyTemplate withDisplayVersion​(String displayVersion)
        Returns an immutable copy of this with just the displayVersion 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.

        “Description of template version”

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

        public DeviceManagementConfigurationPolicyTemplate withLifecycleState​(DeviceManagementTemplateLifecycleState lifecycleState)
        Returns an immutable copy of this with just the lifecycleState 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.

        “Indicate current lifecycle state of template”

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

        public DeviceManagementConfigurationPolicyTemplate 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 template”

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

        public Optional<Integer> getSettingTemplateCount()
        “Number of setting templates. Valid values 0 to 2147483647. This property is read -only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property settingTemplateCount
      • withSettingTemplateCount

        public DeviceManagementConfigurationPolicyTemplate withSettingTemplateCount​(Integer settingTemplateCount)
        Returns an immutable copy of this with just the settingTemplateCount 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 setting templates. Valid values 0 to 2147483647. This property is read -only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

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

        public DeviceManagementConfigurationPolicyTemplate 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 template”

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

        public DeviceManagementConfigurationPolicyTemplate withTemplateFamily​(DeviceManagementConfigurationTemplateFamily templateFamily)
        Returns an immutable copy of this with just the templateFamily 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.

        “TemplateFamily for this template”

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

        public Optional<Integer> getVersion()
        “Template version. Valid values 1 to 2147483647. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property version
      • withVersion

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

        “Template version. Valid values 1 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
      • 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 DeviceManagementConfigurationPolicyTemplate 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 DeviceManagementConfigurationPolicyTemplate 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