Class GroupPolicyUploadedDefinitionFile

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

    public class GroupPolicyUploadedDefinitionFile
    extends GroupPolicyDefinitionFile
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The entity represents an ADMX (Administrative Template) XML file uploaded by Administrator. 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.”
    • Constructor Detail

      • GroupPolicyUploadedDefinitionFile

        protected GroupPolicyUploadedDefinitionFile()
    • Method Detail

      • builderGroupPolicyUploadedDefinitionFile

        public static GroupPolicyUploadedDefinitionFile.Builder builderGroupPolicyUploadedDefinitionFile()
        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 GroupPolicyDefinitionFile
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class GroupPolicyDefinitionFile
      • getContent

        public Optional<byte[]> getContent()
        “The contents of the uploaded ADMX file.”
        Returns:
        property content
      • withContent

        public GroupPolicyUploadedDefinitionFile withContent​(byte[] content)
        Returns an immutable copy of this with just the content 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 contents of the uploaded ADMX file.”

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

        public Optional<String> getDefaultLanguageCode()
        “The default language of the uploaded ADMX file.”
        Returns:
        property defaultLanguageCode
      • withDefaultLanguageCode

        public GroupPolicyUploadedDefinitionFile withDefaultLanguageCode​(String defaultLanguageCode)
        Returns an immutable copy of this with just the defaultLanguageCode 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 default language of the uploaded ADMX file.”

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

        public com.github.davidmoten.odata.client.CollectionPage<GroupPolicyUploadedLanguageFile> getGroupPolicyUploadedLanguageFiles()
        “The list of ADML files associated with the uploaded ADMX file.”
        Returns:
        property groupPolicyUploadedLanguageFiles
      • withGroupPolicyUploadedLanguageFiles

        public GroupPolicyUploadedDefinitionFile withGroupPolicyUploadedLanguageFiles​(List<GroupPolicyUploadedLanguageFile> groupPolicyUploadedLanguageFiles)
        Returns an immutable copy of this with just the groupPolicyUploadedLanguageFiles 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 list of ADML files associated with the uploaded ADMX file.”

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

        public com.github.davidmoten.odata.client.CollectionPage<GroupPolicyUploadedLanguageFile> getGroupPolicyUploadedLanguageFiles​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The list of ADML files associated with the uploaded ADMX file.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property groupPolicyUploadedLanguageFiles
      • withStatus

        public GroupPolicyUploadedDefinitionFile withStatus​(GroupPolicyUploadedDefinitionFileStatus status)
        Returns an immutable copy of this with just the status 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 upload status of the uploaded ADMX file.”

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

        public Optional<OffsetDateTime> getUploadDateTime()
        “The uploaded time of the uploaded ADMX file.”
        Returns:
        property uploadDateTime
      • withUploadDateTime

        public GroupPolicyUploadedDefinitionFile withUploadDateTime​(OffsetDateTime uploadDateTime)
        Returns an immutable copy of this with just the uploadDateTime 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 uploaded time of the uploaded ADMX file.”

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

        public GroupPolicyOperationCollectionRequest getGroupPolicyOperations()
        “The list of operations on the uploaded ADMX file.”
        Returns:
        navigational property groupPolicyOperations
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class GroupPolicyDefinitionFile
      • patch

        public GroupPolicyUploadedDefinitionFile patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class GroupPolicyDefinitionFile
        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 GroupPolicyUploadedDefinitionFile 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 GroupPolicyDefinitionFile
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • remove

        public com.github.davidmoten.odata.client.ActionRequestNoReturn remove()
      • addLanguageFiles

        public com.github.davidmoten.odata.client.ActionRequestNoReturn addLanguageFiles​(List<GroupPolicyUploadedLanguageFile> groupPolicyUploadedLanguageFiles)
      • removeLanguageFiles

        public com.github.davidmoten.odata.client.ActionRequestNoReturn removeLanguageFiles​(List<GroupPolicyUploadedLanguageFile> groupPolicyUploadedLanguageFiles)
      • updateLanguageFiles

        public com.github.davidmoten.odata.client.ActionRequestNoReturn updateLanguageFiles​(List<GroupPolicyUploadedLanguageFile> groupPolicyUploadedLanguageFiles)
      • uploadNewVersion

        public com.github.davidmoten.odata.client.ActionRequestNoReturn uploadNewVersion​(byte[] content,
                                                                                         List<GroupPolicyUploadedLanguageFile> groupPolicyUploadedLanguageFiles)