Class GroupPolicyDefinitionFile

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

    public class GroupPolicyDefinitionFile
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The entity represents an ADMX (Administrative Template) XML file. The ADMX file contains a collection of group policy definitions and their locations by category path. The group policy definition file also contains the languages supported as determined by the language dependent ADML (Administrative Template) language files.”
    • Field Detail

      • description

        protected String description
      • displayName

        protected String displayName
      • fileName

        protected String fileName
      • languageCodes

        protected List<String> languageCodes
      • languageCodesNextLink

        protected String languageCodesNextLink
      • revision

        protected String revision
      • targetNamespace

        protected String targetNamespace
      • targetPrefix

        protected String targetPrefix
    • Constructor Detail

      • GroupPolicyDefinitionFile

        protected GroupPolicyDefinitionFile()
    • Method Detail

      • odataTypeName

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

        public static GroupPolicyDefinitionFile.Builder builderGroupPolicyDefinitionFile()
        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 localized description of the policy settings in the ADMX file. The default value is empty.”
        Returns:
        property description
      • withDescription

        public GroupPolicyDefinitionFile 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 localized description of the policy settings in the ADMX file. The default value is empty.”

        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 localized friendly name of the ADMX file.”
        Returns:
        property displayName
      • withDisplayName

        public GroupPolicyDefinitionFile 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 friendly name of the ADMX file.”

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

        public Optional<String> getFileName()
        “The file name of the ADMX file without the path. For example: edge.admx”
        Returns:
        property fileName
      • withFileName

        public GroupPolicyDefinitionFile withFileName​(String fileName)
        Returns an immutable copy of this with just the fileName 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 file name of the ADMX file without the path. For example: edge.admx”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getLanguageCodes()
        “The supported language codes for the ADMX file.”
        Returns:
        property languageCodes
      • withLanguageCodes

        public GroupPolicyDefinitionFile withLanguageCodes​(List<String> languageCodes)
        Returns an immutable copy of this with just the languageCodes 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 supported language codes for the ADMX file.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getLanguageCodes​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The supported language codes for the ADMX file.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property languageCodes
      • getLastModifiedDateTime

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

        public GroupPolicyDefinitionFile 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
      • getPolicyType

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

        public GroupPolicyDefinitionFile 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
      • getRevision

        public Optional<String> getRevision()
        “The revision version associated with the file.”
        Returns:
        property revision
      • withRevision

        public GroupPolicyDefinitionFile withRevision​(String revision)
        Returns an immutable copy of this with just the revision 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 revision version associated with the file.”

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

        public Optional<String> getTargetNamespace()
        “Specifies the URI used to identify the namespace within the ADMX file.”
        Returns:
        property targetNamespace
      • withTargetNamespace

        public GroupPolicyDefinitionFile withTargetNamespace​(String targetNamespace)
        Returns an immutable copy of this with just the targetNamespace 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 URI used to identify the namespace within the ADMX file.”

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

        public Optional<String> getTargetPrefix()
        “Specifies the logical name that refers to the namespace within the ADMX file.”
        Returns:
        property targetPrefix
      • withTargetPrefix

        public GroupPolicyDefinitionFile withTargetPrefix​(String targetPrefix)
        Returns an immutable copy of this with just the targetPrefix 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 logical name that refers to the namespace within the ADMX file.”

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