Package odata.msgraph.client.beta.entity
Class GroupPolicyObjectFile
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.GroupPolicyObjectFile
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class GroupPolicyObjectFile extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The Group Policy Object file uploaded by admin.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupPolicyObjectFile.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringcontentprotected OffsetDateTimecreatedDateTimeprotected StringgroupPolicyObjectIdprotected OffsetDateTimelastModifiedDateTimeprotected StringouDistinguishedName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGroupPolicyObjectFile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupPolicyObjectFile.BuilderbuilderGroupPolicyObjectFile()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<String>getContent()“The Group Policy Object file content.”Optional<OffsetDateTime>getCreatedDateTime()“The date and time at which the GroupPolicy was first uploaded.”Optional<String>getGroupPolicyObjectId()“The Group Policy Object GUID from GPO Xml content”Optional<OffsetDateTime>getLastModifiedDateTime()“The date and time at which the GroupPolicyObjectFile was last modified.”Optional<String>getOuDistinguishedName()“The distinguished name of the OU.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()GroupPolicyObjectFilepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)GroupPolicyObjectFileput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()GroupPolicyObjectFilewithContent(String content)Returns an immutable copy ofthiswith just thecontentfield changed.GroupPolicyObjectFilewithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.GroupPolicyObjectFilewithGroupPolicyObjectId(String groupPolicyObjectId)Returns an immutable copy ofthiswith just thegroupPolicyObjectIdfield changed.GroupPolicyObjectFilewithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.GroupPolicyObjectFilewithOuDistinguishedName(String ouDistinguishedName)Returns an immutable copy ofthiswith just theouDistinguishedNamefield changed.GroupPolicyObjectFilewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
content
protected String content
-
createdDateTime
protected OffsetDateTime createdDateTime
-
groupPolicyObjectId
protected String groupPolicyObjectId
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
ouDistinguishedName
protected String ouDistinguishedName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderGroupPolicyObjectFile
public static GroupPolicyObjectFile.Builder builderGroupPolicyObjectFile()
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
-
getContent
public Optional<String> getContent()
“The Group Policy Object file content.”- Returns:
- property content
-
withContent
public GroupPolicyObjectFile withContent(String 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 Group Policy Object file content.”
- Parameters:
content- new value ofcontentfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecontentfield changed
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“The date and time at which the GroupPolicy was first uploaded.”- Returns:
- property createdDateTime
-
withCreatedDateTime
public GroupPolicyObjectFile 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 at which the GroupPolicy was first uploaded.”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getGroupPolicyObjectId
public Optional<String> getGroupPolicyObjectId()
“The Group Policy Object GUID from GPO Xml content”- Returns:
- property groupPolicyObjectId
-
withGroupPolicyObjectId
public GroupPolicyObjectFile withGroupPolicyObjectId(String groupPolicyObjectId)
Returns an immutable copy ofthiswith just thegroupPolicyObjectIdfield 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 Group Policy Object GUID from GPO Xml content”
- Parameters:
groupPolicyObjectId- new value ofgroupPolicyObjectIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegroupPolicyObjectIdfield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“The date and time at which the GroupPolicyObjectFile was last modified.”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public GroupPolicyObjectFile 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 at which the GroupPolicyObjectFile was last modified.”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getOuDistinguishedName
public Optional<String> getOuDistinguishedName()
“The distinguished name of the OU.”- Returns:
- property ouDistinguishedName
-
withOuDistinguishedName
public GroupPolicyObjectFile withOuDistinguishedName(String ouDistinguishedName)
Returns an immutable copy ofthiswith just theouDistinguishedNamefield 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 distinguished name of the OU.”
- Parameters:
ouDistinguishedName- new value ofouDistinguishedNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theouDistinguishedNamefield changed
-
withUnmappedField
public GroupPolicyObjectFile withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public GroupPolicyObjectFile patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public GroupPolicyObjectFile put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-