Package odata.msgraph.client.beta.entity
Class GroupPolicyDefinitionValue
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.GroupPolicyDefinitionValue
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class GroupPolicyDefinitionValue extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The definition value entity stores the value for a single group policy definition.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupPolicyDefinitionValue.Builder
-
Field Summary
Fields Modifier and Type Field Description protected GroupPolicyConfigurationTypeconfigurationTypeprotected OffsetDateTimecreatedDateTimeprotected Booleanenabledprotected OffsetDateTimelastModifiedDateTime-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGroupPolicyDefinitionValue()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupPolicyDefinitionValue.BuilderbuilderGroupPolicyDefinitionValue()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<GroupPolicyConfigurationType>getConfigurationType()“Specifies how the value should be configured.Optional<OffsetDateTime>getCreatedDateTime()“The date and time the object was created.”GroupPolicyDefinitionRequestgetDefinition()“The associated group policy definition with the value.”Optional<Boolean>getEnabled()“Enables or disables the associated group policy definition.”Optional<OffsetDateTime>getLastModifiedDateTime()“The date and time the entity was last modified.”GroupPolicyPresentationValueCollectionRequestgetPresentationValues()“The associated group policy presentation values with the definition value.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()GroupPolicyDefinitionValuepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)GroupPolicyDefinitionValueput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()GroupPolicyDefinitionValuewithConfigurationType(GroupPolicyConfigurationType configurationType)Returns an immutable copy ofthiswith just theconfigurationTypefield changed.GroupPolicyDefinitionValuewithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.GroupPolicyDefinitionValuewithEnabled(Boolean enabled)Returns an immutable copy ofthiswith just theenabledfield changed.GroupPolicyDefinitionValuewithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.GroupPolicyDefinitionValuewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
configurationType
protected GroupPolicyConfigurationType configurationType
-
createdDateTime
protected OffsetDateTime createdDateTime
-
enabled
protected Boolean enabled
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderGroupPolicyDefinitionValue
public static GroupPolicyDefinitionValue.Builder builderGroupPolicyDefinitionValue()
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
-
getConfigurationType
public Optional<GroupPolicyConfigurationType> getConfigurationType()
“Specifies how the value should be configured. This can be either as a Policy or as a Preference.”- Returns:
- property configurationType
-
withConfigurationType
public GroupPolicyDefinitionValue withConfigurationType(GroupPolicyConfigurationType configurationType)
Returns an immutable copy ofthiswith just theconfigurationTypefield 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 how the value should be configured. This can be either as a Policy or as a Preference.”
- Parameters:
configurationType- new value ofconfigurationTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theconfigurationTypefield changed
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“The date and time the object was created.”- Returns:
- property createdDateTime
-
withCreatedDateTime
public GroupPolicyDefinitionValue withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield 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 object was created.”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getEnabled
public Optional<Boolean> getEnabled()
“Enables or disables the associated group policy definition.”- Returns:
- property enabled
-
withEnabled
public GroupPolicyDefinitionValue withEnabled(Boolean enabled)
Returns an immutable copy ofthiswith just theenabledfield 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.“Enables or disables the associated group policy definition.”
- Parameters:
enabled- new value ofenabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenabledfield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“The date and time the entity was last modified.”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public GroupPolicyDefinitionValue 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
-
withUnmappedField
public GroupPolicyDefinitionValue withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getDefinition
public GroupPolicyDefinitionRequest getDefinition()
“The associated group policy definition with the value.”- Returns:
- navigational property definition
-
getPresentationValues
public GroupPolicyPresentationValueCollectionRequest getPresentationValues()
“The associated group policy presentation values with the definition value.”- Returns:
- navigational property presentationValues
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public GroupPolicyDefinitionValue patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public GroupPolicyDefinitionValue put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-