Package odata.msgraph.client.beta.entity
Class GroupPolicyUploadedDefinitionFile
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.GroupPolicyDefinitionFile
-
- odata.msgraph.client.beta.entity.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupPolicyUploadedDefinitionFile.Builder
-
Field Summary
Fields Modifier and Type Field Description protected byte[]contentprotected StringdefaultLanguageCodeprotected StringfileNameprotected List<GroupPolicyUploadedLanguageFile>groupPolicyUploadedLanguageFilesprotected StringgroupPolicyUploadedLanguageFilesNextLinkprotected GroupPolicyUploadedDefinitionFileStatusstatusprotected OffsetDateTimeuploadDateTime-
Fields inherited from class odata.msgraph.client.beta.entity.GroupPolicyDefinitionFile
description, displayName, languageCodes, languageCodesNextLink, lastModifiedDateTime, policyType, revision, targetNamespace, targetPrefix
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGroupPolicyUploadedDefinitionFile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.ActionRequestNoReturnaddLanguageFiles(List<GroupPolicyUploadedLanguageFile> groupPolicyUploadedLanguageFiles)static GroupPolicyUploadedDefinitionFile.BuilderbuilderGroupPolicyUploadedDefinitionFile()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<byte[]>getContent()“The contents of the uploaded ADMX file.”Optional<String>getDefaultLanguageCode()“The default language of the uploaded ADMX file.”Optional<String>getFileName()“The file name of the uploaded ADML file.”GroupPolicyOperationCollectionRequestgetGroupPolicyOperations()“The list of operations on the uploaded ADMX file.”com.github.davidmoten.odata.client.CollectionPage<GroupPolicyUploadedLanguageFile>getGroupPolicyUploadedLanguageFiles()“The list of ADML files associated with the uploaded ADMX file.”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.”Optional<GroupPolicyUploadedDefinitionFileStatus>getStatus()“The upload status of the uploaded ADMX file.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<OffsetDateTime>getUploadDateTime()“The uploaded time of the uploaded ADMX file.”StringodataTypeName()GroupPolicyUploadedDefinitionFilepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)GroupPolicyUploadedDefinitionFileput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnremove()com.github.davidmoten.odata.client.ActionRequestNoReturnremoveLanguageFiles(List<GroupPolicyUploadedLanguageFile> groupPolicyUploadedLanguageFiles)StringtoString()com.github.davidmoten.odata.client.ActionRequestNoReturnupdateLanguageFiles(List<GroupPolicyUploadedLanguageFile> groupPolicyUploadedLanguageFiles)com.github.davidmoten.odata.client.ActionRequestNoReturnuploadNewVersion(byte[] content, List<GroupPolicyUploadedLanguageFile> groupPolicyUploadedLanguageFiles)GroupPolicyUploadedDefinitionFilewithContent(byte[] content)Returns an immutable copy ofthiswith just thecontentfield changed.GroupPolicyUploadedDefinitionFilewithDefaultLanguageCode(String defaultLanguageCode)Returns an immutable copy ofthiswith just thedefaultLanguageCodefield changed.GroupPolicyUploadedDefinitionFilewithFileName(String fileName)Returns an immutable copy ofthiswith just thefileNamefield changed.GroupPolicyUploadedDefinitionFilewithGroupPolicyUploadedLanguageFiles(List<GroupPolicyUploadedLanguageFile> groupPolicyUploadedLanguageFiles)Returns an immutable copy ofthiswith just thegroupPolicyUploadedLanguageFilesfield changed.GroupPolicyUploadedDefinitionFilewithStatus(GroupPolicyUploadedDefinitionFileStatus status)Returns an immutable copy ofthiswith just thestatusfield changed.GroupPolicyUploadedDefinitionFilewithUnmappedField(String name, String value)GroupPolicyUploadedDefinitionFilewithUploadDateTime(OffsetDateTime uploadDateTime)Returns an immutable copy ofthiswith just theuploadDateTimefield changed.-
Methods inherited from class odata.msgraph.client.beta.entity.GroupPolicyDefinitionFile
builderGroupPolicyDefinitionFile, getDefinitions, getDescription, getDisplayName, getLanguageCodes, getLanguageCodes, getLastModifiedDateTime, getPolicyType, getRevision, getTargetNamespace, getTargetPrefix, withDescription, withDisplayName, withLanguageCodes, withLastModifiedDateTime, withPolicyType, withRevision, withTargetNamespace, withTargetPrefix
-
-
-
-
Field Detail
-
content
protected byte[] content
-
defaultLanguageCode
protected String defaultLanguageCode
-
fileName
protected String fileName
-
groupPolicyUploadedLanguageFiles
protected List<GroupPolicyUploadedLanguageFile> groupPolicyUploadedLanguageFiles
-
groupPolicyUploadedLanguageFilesNextLink
protected String groupPolicyUploadedLanguageFilesNextLink
-
status
protected GroupPolicyUploadedDefinitionFileStatus status
-
uploadDateTime
protected OffsetDateTime uploadDateTime
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classGroupPolicyDefinitionFile
-
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classGroupPolicyDefinitionFile
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classGroupPolicyDefinitionFile
-
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 ofthiswith just thecontentfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofcontentfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecontentfield 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 ofthiswith just thedefaultLanguageCodefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofdefaultLanguageCodefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedefaultLanguageCodefield changed
-
getFileName
public Optional<String> getFileName()
“The file name of the uploaded ADML file.”- Returns:
- property fileName
-
withFileName
public GroupPolicyUploadedDefinitionFile withFileName(String fileName)
Returns an immutable copy ofthiswith just thefileNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The file name of the uploaded ADML file.”
- Parameters:
fileName- new value offileNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefileNamefield 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 ofthiswith just thegroupPolicyUploadedLanguageFilesfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofgroupPolicyUploadedLanguageFilesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegroupPolicyUploadedLanguageFilesfield 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
-
getStatus
public Optional<GroupPolicyUploadedDefinitionFileStatus> getStatus()
“The upload status of the uploaded ADMX file.”- Returns:
- property status
-
withStatus
public GroupPolicyUploadedDefinitionFile withStatus(GroupPolicyUploadedDefinitionFileStatus status)
Returns an immutable copy ofthiswith just thestatusfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield 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 ofthiswith just theuploadDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofuploadDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuploadDateTimefield changed
-
withUnmappedField
public GroupPolicyUploadedDefinitionFile withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classGroupPolicyDefinitionFile
-
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:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classGroupPolicyDefinitionFile
-
patch
public GroupPolicyUploadedDefinitionFile patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classGroupPolicyDefinitionFile- Returns:
- a copy of
thiswith 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 ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classGroupPolicyDefinitionFile- Returns:
- a copy of
thiswith 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)
-
toString
public String toString()
- Overrides:
toStringin classGroupPolicyDefinitionFile
-
-