Class DeviceManagementTemplate

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType
    Direct Known Subclasses:
    SecurityBaselineTemplate

    public class DeviceManagementTemplate
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Entity that represents a defined collection of device settings”
    • Constructor Detail

      • DeviceManagementTemplate

        protected DeviceManagementTemplate()
    • Method Detail

      • odataTypeName

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

        public static DeviceManagementTemplate.Builder builderDeviceManagementTemplate()
        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
      • getDescription

        public Optional<String> getDescription()
        “The template's description”
        Returns:
        property description
      • withDescription

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

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

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

        “The template's 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
      • getIntentCount

        public Optional<Integer> getIntentCount()
        “Number of Intents created from this template.”
        Returns:
        property intentCount
      • withIntentCount

        public DeviceManagementTemplate withIntentCount​(Integer intentCount)
        Returns an immutable copy of this with just the intentCount 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 Intents created from this template.”

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

        public Optional<Boolean> getIsDeprecated()
        “The template is deprecated or not. Intents cannot be created from a deprecated template.”
        Returns:
        property isDeprecated
      • withIsDeprecated

        public DeviceManagementTemplate withIsDeprecated​(Boolean isDeprecated)
        Returns an immutable copy of this with just the isDeprecated 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 template is deprecated or not. Intents cannot be created from a deprecated template.”

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

        public Optional<PolicyPlatformType> getPlatformType()
        “The template's platform.”
        Returns:
        property platformType
      • withPlatformType

        public DeviceManagementTemplate withPlatformType​(PolicyPlatformType platformType)
        Returns an immutable copy of this with just the platformType 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 template's platform.”

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

        public Optional<OffsetDateTime> getPublishedDateTime()
        “When the template was published”
        Returns:
        property publishedDateTime
      • withPublishedDateTime

        public DeviceManagementTemplate withPublishedDateTime​(OffsetDateTime publishedDateTime)
        Returns an immutable copy of this with just the publishedDateTime 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.

        “When the template was published”

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

        public DeviceManagementTemplate withTemplateSubtype​(DeviceManagementTemplateSubtype templateSubtype)
        Returns an immutable copy of this with just the templateSubtype 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 template's subtype.”

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

        public DeviceManagementTemplate withTemplateType​(DeviceManagementTemplateType templateType)
        Returns an immutable copy of this with just the templateType 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 template's type.”

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

        public Optional<String> getVersionInfo()
        “The template's version information”
        Returns:
        property versionInfo
      • withVersionInfo

        public DeviceManagementTemplate withVersionInfo​(String versionInfo)
        Returns an immutable copy of this with just the versionInfo 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 template's version information”

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