Class GroupPolicyDefinition

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

    public class GroupPolicyDefinition
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The entity describes all of the information about a single group policy.”
    • Constructor Detail

      • GroupPolicyDefinition

        protected GroupPolicyDefinition()
    • Method Detail

      • odataTypeName

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

        public static GroupPolicyDefinition.Builder builderGroupPolicyDefinition()
        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
      • getCategoryPath

        public Optional<String> getCategoryPath()
        “The localized full category path for the policy.”
        Returns:
        property categoryPath
      • withCategoryPath

        public GroupPolicyDefinition withCategoryPath​(String categoryPath)
        Returns an immutable copy of this with just the categoryPath 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 localized full category path for the policy.”

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

        public GroupPolicyDefinition withClassType​(GroupPolicyDefinitionClassType classType)
        Returns an immutable copy of this with just the classType 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.

        “Identifies the type of groups the policy can be applied to.”

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

        public Optional<String> getDisplayName()
        “The localized policy name.”
        Returns:
        property displayName
      • withDisplayName

        public GroupPolicyDefinition 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 localized policy name.”

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

        public Optional<String> getExplainText()
        “The localized explanation or help text associated with the policy. The default value is empty.”
        Returns:
        property explainText
      • withExplainText

        public GroupPolicyDefinition withExplainText​(String explainText)
        Returns an immutable copy of this with just the explainText 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 localized explanation or help text associated with the policy. The default value is empty.”

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

        public Optional<String> getGroupPolicyCategoryId()
        “The category id of the parent category”
        Returns:
        property groupPolicyCategoryId
      • withGroupPolicyCategoryId

        public GroupPolicyDefinition withGroupPolicyCategoryId​(String groupPolicyCategoryId)
        Returns an immutable copy of this with just the groupPolicyCategoryId 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 category id of the parent category”

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

        public Optional<Boolean> getHasRelatedDefinitions()
        “Signifies whether or not there are related definitions to this definition”
        Returns:
        property hasRelatedDefinitions
      • withHasRelatedDefinitions

        public GroupPolicyDefinition withHasRelatedDefinitions​(Boolean hasRelatedDefinitions)
        Returns an immutable copy of this with just the hasRelatedDefinitions 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.

        “Signifies whether or not there are related definitions to this definition”

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

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “The date and time the entity was last modified.”
        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

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

        “The date and time the entity was last modified.”

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

        public Optional<String> getMinDeviceCspVersion()
        “Minimum required CSP version for device configuration in this definition”
        Returns:
        property minDeviceCspVersion
      • withMinDeviceCspVersion

        public GroupPolicyDefinition withMinDeviceCspVersion​(String minDeviceCspVersion)
        Returns an immutable copy of this with just the minDeviceCspVersion 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.

        “Minimum required CSP version for device configuration in this definition”

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

        public Optional<String> getMinUserCspVersion()
        “Minimum required CSP version for user configuration in this definition”
        Returns:
        property minUserCspVersion
      • withMinUserCspVersion

        public GroupPolicyDefinition withMinUserCspVersion​(String minUserCspVersion)
        Returns an immutable copy of this with just the minUserCspVersion 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.

        “Minimum required CSP version for user configuration in this definition”

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

        public Optional<GroupPolicyType> getPolicyType()
        “Specifies the type of group policy.”
        Returns:
        property policyType
      • withPolicyType

        public GroupPolicyDefinition withPolicyType​(GroupPolicyType policyType)
        Returns an immutable copy of this with just the policyType 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.

        “Specifies the type of group policy.”

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

        public Optional<String> getSupportedOn()
        “Localized string used to specify what operating system or application version is affected by the policy.”
        Returns:
        property supportedOn
      • withSupportedOn

        public GroupPolicyDefinition withSupportedOn​(String supportedOn)
        Returns an immutable copy of this with just the supportedOn 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 string used to specify what operating system or application version is affected by the policy.”

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

        public Optional<String> getVersion()
        “Setting definition version”
        Returns:
        property version
      • withVersion

        public GroupPolicyDefinition withVersion​(String 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.

        “Setting definition version”

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

        public GroupPolicyCategoryRequest getCategory()
        “The group policy category associated with the definition.”
        Returns:
        navigational property category
      • getDefinitionFile

        public GroupPolicyDefinitionFileRequest getDefinitionFile()
        “The group policy file associated with the definition.”
        Returns:
        navigational property definitionFile
      • getNextVersionDefinition

        public GroupPolicyDefinitionRequest getNextVersionDefinition()
        “Definition of the next version of this definition”
        Returns:
        navigational property nextVersionDefinition
      • getPresentations

        public GroupPolicyPresentationCollectionRequest getPresentations()
        “The group policy presentations associated with the definition.”
        Returns:
        navigational property presentations
      • getPreviousVersionDefinition

        public GroupPolicyDefinitionRequest getPreviousVersionDefinition()
        “Definition of the previous version of this definition”
        Returns:
        navigational property previousVersionDefinition
      • 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 GroupPolicyDefinition 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 GroupPolicyDefinition 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