Package odata.msgraph.client.entity
Class Request
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.Request
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
PrivilegedAccessScheduleRequest,UnifiedRoleAssignmentScheduleRequest,UnifiedRoleEligibilityScheduleRequest,UserConsentRequest
public class Request extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequest.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringapprovalIdprotected OffsetDateTimecompletedDateTimeprotected IdentitySetcreatedByprotected OffsetDateTimecreatedDateTimeprotected StringcustomDataprotected Stringstatus-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Request.BuilderbuilderRequest()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getApprovalId()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCompletedDateTime()Optional<IdentitySet>getCreatedBy()Optional<OffsetDateTime>getCreatedDateTime()Optional<String>getCustomData()Optional<String>getStatus()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()Requestpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)Requestput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()RequestwithApprovalId(String approvalId)RequestwithCompletedDateTime(OffsetDateTime completedDateTime)RequestwithCreatedBy(IdentitySet createdBy)RequestwithCreatedDateTime(OffsetDateTime createdDateTime)RequestwithCustomData(String customData)RequestwithStatus(String status)RequestwithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
approvalId
protected String approvalId
-
completedDateTime
protected OffsetDateTime completedDateTime
-
createdBy
protected IdentitySet createdBy
-
createdDateTime
protected OffsetDateTime createdDateTime
-
customData
protected String customData
-
status
protected String status
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderRequest
public static Request.Builder builderRequest()
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
-
getCompletedDateTime
public Optional<OffsetDateTime> getCompletedDateTime()
-
withCompletedDateTime
public Request withCompletedDateTime(OffsetDateTime completedDateTime)
-
getCreatedBy
public Optional<IdentitySet> getCreatedBy()
-
withCreatedBy
public Request withCreatedBy(IdentitySet createdBy)
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
-
withCreatedDateTime
public Request withCreatedDateTime(OffsetDateTime createdDateTime)
-
withUnmappedField
public Request withUnmappedField(String name, Object 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 Request patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public Request put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-