Package odata.msgraph.client.beta.entity
Class GroupPolicyDefinitionFile
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupPolicyDefinitionFile.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringdescriptionprotected StringdisplayNameprotected StringfileNameprotected List<String>languageCodesprotected StringlanguageCodesNextLinkprotected OffsetDateTimelastModifiedDateTimeprotected GroupPolicyTypepolicyTypeprotected Stringrevisionprotected StringtargetNamespaceprotected StringtargetPrefix-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGroupPolicyDefinitionFile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupPolicyDefinitionFile.BuilderbuilderGroupPolicyDefinitionFile()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()GroupPolicyDefinitionCollectionRequestgetDefinitions()“The group policy definitions associated with the file.”Optional<String>getDescription()“The localized description of the policy settings in the ADMX file.Optional<String>getDisplayName()“The localized friendly name of the ADMX file.”Optional<String>getFileName()“The file name of the ADMX file without the path.com.github.davidmoten.odata.client.CollectionPage<String>getLanguageCodes()“The supported language codes for the ADMX file.”com.github.davidmoten.odata.client.CollectionPage<String>getLanguageCodes(com.github.davidmoten.odata.client.HttpRequestOptions options)“The supported language codes for the ADMX file.”Optional<OffsetDateTime>getLastModifiedDateTime()“The date and time the entity was last modified.”Optional<GroupPolicyType>getPolicyType()“Specifies the type of group policy.”Optional<String>getRevision()“The revision version associated with the file.”Optional<String>getTargetNamespace()“Specifies the URI used to identify the namespace within the ADMX file.”Optional<String>getTargetPrefix()“Specifies the logical name that refers to the namespace within the ADMX file.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()GroupPolicyDefinitionFilepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)GroupPolicyDefinitionFileput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()GroupPolicyDefinitionFilewithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.GroupPolicyDefinitionFilewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.GroupPolicyDefinitionFilewithFileName(String fileName)Returns an immutable copy ofthiswith just thefileNamefield changed.GroupPolicyDefinitionFilewithLanguageCodes(List<String> languageCodes)Returns an immutable copy ofthiswith just thelanguageCodesfield changed.GroupPolicyDefinitionFilewithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.GroupPolicyDefinitionFilewithPolicyType(GroupPolicyType policyType)Returns an immutable copy ofthiswith just thepolicyTypefield changed.GroupPolicyDefinitionFilewithRevision(String revision)Returns an immutable copy ofthiswith just therevisionfield changed.GroupPolicyDefinitionFilewithTargetNamespace(String targetNamespace)Returns an immutable copy ofthiswith just thetargetNamespacefield changed.GroupPolicyDefinitionFilewithTargetPrefix(String targetPrefix)Returns an immutable copy ofthiswith just thetargetPrefixfield changed.GroupPolicyDefinitionFilewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
description
protected String description
-
displayName
protected String displayName
-
fileName
protected String fileName
-
languageCodesNextLink
protected String languageCodesNextLink
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
policyType
protected GroupPolicyType policyType
-
revision
protected String revision
-
targetNamespace
protected String targetNamespace
-
targetPrefix
protected String targetPrefix
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
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 ofthiswith just thedescriptionfield 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 localized description of the policy settings in the ADMX file. The default value is empty.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield 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 ofthiswith just thedisplayNamefield 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 localized friendly name of the ADMX file.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield 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 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 ADMX file without the path. For example: edge.admx”
- Parameters:
fileName- new value offileNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefileNamefield 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 ofthiswith just thelanguageCodesfield 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 supported language codes for the ADMX file.”
- Parameters:
languageCodes- new value oflanguageCodesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelanguageCodesfield 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 ofthiswith just thelastModifiedDateTimefield 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 date and time the entity was last modified.”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield 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 ofthiswith just thepolicyTypefield 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.“Specifies the type of group policy.”
- Parameters:
policyType- new value ofpolicyTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepolicyTypefield 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 ofthiswith just therevisionfield 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 revision version associated with the file.”
- Parameters:
revision- new value ofrevisionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therevisionfield 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 ofthiswith just thetargetNamespacefield 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.“Specifies the URI used to identify the namespace within the ADMX file.”
- Parameters:
targetNamespace- new value oftargetNamespacefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetargetNamespacefield 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 ofthiswith just thetargetPrefixfield 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.“Specifies the logical name that refers to the namespace within the ADMX file.”
- Parameters:
targetPrefix- new value oftargetPrefixfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetargetPrefixfield changed
-
withUnmappedField
public GroupPolicyDefinitionFile withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getDefinitions
public GroupPolicyDefinitionCollectionRequest getDefinitions()
“The group policy definitions associated with the file.”- Returns:
- navigational property definitions
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public GroupPolicyDefinitionFile patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public GroupPolicyDefinitionFile put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-