Package odata.msgraph.client.beta.entity
Class GroupPolicyDefinition
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupPolicyDefinition.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringcategoryPathprotected GroupPolicyDefinitionClassTypeclassTypeprotected StringdisplayNameprotected StringexplainTextprotected UUIDgroupPolicyCategoryIdprotected BooleanhasRelatedDefinitionsprotected OffsetDateTimelastModifiedDateTimeprotected StringminDeviceCspVersionprotected StringminUserCspVersionprotected GroupPolicyTypepolicyTypeprotected StringsupportedOnprotected Stringversion-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGroupPolicyDefinition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupPolicyDefinition.BuilderbuilderGroupPolicyDefinition()Returns a builder which is used to create a new instance of this class (given that this class is immutable).GroupPolicyCategoryRequestgetCategory()“The group policy category associated with the definition.”Optional<String>getCategoryPath()“The localized full category path for the policy.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<GroupPolicyDefinitionClassType>getClassType()“Identifies the type of groups the policy can be applied to.”GroupPolicyDefinitionFileRequestgetDefinitionFile()“The group policy file associated with the definition.”Optional<String>getDisplayName()“The localized policy name.”Optional<String>getExplainText()“The localized explanation or help text associated with the policy.Optional<UUID>getGroupPolicyCategoryId()“The category id of the parent category”Optional<Boolean>getHasRelatedDefinitions()“Signifies whether or not there are related definitions to this definition”Optional<OffsetDateTime>getLastModifiedDateTime()“The date and time the entity was last modified.”Optional<String>getMinDeviceCspVersion()“Minimum required CSP version for device configuration in this definition”Optional<String>getMinUserCspVersion()“Minimum required CSP version for user configuration in this definition”GroupPolicyDefinitionRequestgetNextVersionDefinition()“Definition of the next version of this definition”Optional<GroupPolicyType>getPolicyType()“Specifies the type of group policy.”GroupPolicyPresentationCollectionRequestgetPresentations()“The group policy presentations associated with the definition.”GroupPolicyDefinitionRequestgetPreviousVersionDefinition()“Definition of the previous version of this definition”Optional<String>getSupportedOn()“Localized string used to specify what operating system or application version is affected by the policy.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getVersion()“Setting definition version”StringodataTypeName()GroupPolicyDefinitionpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)GroupPolicyDefinitionput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()GroupPolicyDefinitionwithCategoryPath(String categoryPath)Returns an immutable copy ofthiswith just thecategoryPathfield changed.GroupPolicyDefinitionwithClassType(GroupPolicyDefinitionClassType classType)Returns an immutable copy ofthiswith just theclassTypefield changed.GroupPolicyDefinitionwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.GroupPolicyDefinitionwithExplainText(String explainText)Returns an immutable copy ofthiswith just theexplainTextfield changed.GroupPolicyDefinitionwithGroupPolicyCategoryId(UUID groupPolicyCategoryId)Returns an immutable copy ofthiswith just thegroupPolicyCategoryIdfield changed.GroupPolicyDefinitionwithHasRelatedDefinitions(Boolean hasRelatedDefinitions)Returns an immutable copy ofthiswith just thehasRelatedDefinitionsfield changed.GroupPolicyDefinitionwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.GroupPolicyDefinitionwithMinDeviceCspVersion(String minDeviceCspVersion)Returns an immutable copy ofthiswith just theminDeviceCspVersionfield changed.GroupPolicyDefinitionwithMinUserCspVersion(String minUserCspVersion)Returns an immutable copy ofthiswith just theminUserCspVersionfield changed.GroupPolicyDefinitionwithPolicyType(GroupPolicyType policyType)Returns an immutable copy ofthiswith just thepolicyTypefield changed.GroupPolicyDefinitionwithSupportedOn(String supportedOn)Returns an immutable copy ofthiswith just thesupportedOnfield changed.GroupPolicyDefinitionwithUnmappedField(String name, String value)GroupPolicyDefinitionwithVersion(String version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
categoryPath
protected String categoryPath
-
classType
protected GroupPolicyDefinitionClassType classType
-
displayName
protected String displayName
-
explainText
protected String explainText
-
groupPolicyCategoryId
protected UUID groupPolicyCategoryId
-
hasRelatedDefinitions
protected Boolean hasRelatedDefinitions
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
minDeviceCspVersion
protected String minDeviceCspVersion
-
minUserCspVersion
protected String minUserCspVersion
-
policyType
protected GroupPolicyType policyType
-
supportedOn
protected String supportedOn
-
version
protected String version
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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:
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
-
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 ofthiswith just thecategoryPathfield 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 full category path for the policy.”
- Parameters:
categoryPath- new value ofcategoryPathfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecategoryPathfield changed
-
getClassType
public Optional<GroupPolicyDefinitionClassType> getClassType()
“Identifies the type of groups the policy can be applied to.”- Returns:
- property classType
-
withClassType
public GroupPolicyDefinition withClassType(GroupPolicyDefinitionClassType classType)
Returns an immutable copy ofthiswith just theclassTypefield 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.“Identifies the type of groups the policy can be applied to.”
- Parameters:
classType- new value ofclassTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theclassTypefield changed
-
getDisplayName
public Optional<String> getDisplayName()
“The localized policy name.”- Returns:
- property displayName
-
withDisplayName
public GroupPolicyDefinition 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 policy name.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield 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 ofthiswith just theexplainTextfield 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 explanation or help text associated with the policy. The default value is empty.”
- Parameters:
explainText- new value ofexplainTextfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theexplainTextfield changed
-
getGroupPolicyCategoryId
public Optional<UUID> getGroupPolicyCategoryId()
“The category id of the parent category”- Returns:
- property groupPolicyCategoryId
-
withGroupPolicyCategoryId
public GroupPolicyDefinition withGroupPolicyCategoryId(UUID groupPolicyCategoryId)
Returns an immutable copy ofthiswith just thegroupPolicyCategoryIdfield 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 category id of the parent category”
- Parameters:
groupPolicyCategoryId- new value ofgroupPolicyCategoryIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegroupPolicyCategoryIdfield 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 ofthiswith just thehasRelatedDefinitionsfield 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.“Signifies whether or not there are related definitions to this definition”
- Parameters:
hasRelatedDefinitions- new value ofhasRelatedDefinitionsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thehasRelatedDefinitionsfield 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 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
-
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 ofthiswith just theminDeviceCspVersionfield 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.“Minimum required CSP version for device configuration in this definition”
- Parameters:
minDeviceCspVersion- new value ofminDeviceCspVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminDeviceCspVersionfield 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 ofthiswith just theminUserCspVersionfield 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.“Minimum required CSP version for user configuration in this definition”
- Parameters:
minUserCspVersion- new value ofminUserCspVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminUserCspVersionfield 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 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
-
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 ofthiswith just thesupportedOnfield 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.“Localized string used to specify what operating system or application version is affected by the policy.”
- Parameters:
supportedOn- new value ofsupportedOnfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesupportedOnfield changed
-
getVersion
public Optional<String> getVersion()
“Setting definition version”- Returns:
- property version
-
withVersion
public GroupPolicyDefinition withVersion(String version)
Returns an immutable copy ofthiswith just theversionfield 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.“Setting definition version”
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public GroupPolicyDefinition withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
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:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public GroupPolicyDefinition patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public GroupPolicyDefinition put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-