Package odata.msgraph.client.beta.entity
Class PrivilegedApproval
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.PrivilegedApproval
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class PrivilegedApproval extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrivilegedApproval.Builder
-
Field Summary
Fields Modifier and Type Field Description protected DurationapprovalDurationprotected ApprovalStateapprovalStateprotected StringapprovalTypeprotected StringapproverReasonprotected OffsetDateTimeendDateTimeprotected StringrequestorReasonprotected StringroleIdprotected OffsetDateTimestartDateTimeprotected StringuserId-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPrivilegedApproval()
-
Method Summary
-
-
-
Field Detail
-
approvalDuration
protected Duration approvalDuration
-
approvalState
protected ApprovalState approvalState
-
approvalType
protected String approvalType
-
approverReason
protected String approverReason
-
endDateTime
protected OffsetDateTime endDateTime
-
requestorReason
protected String requestorReason
-
roleId
protected String roleId
-
startDateTime
protected OffsetDateTime startDateTime
-
userId
protected String userId
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderPrivilegedApproval
public static PrivilegedApproval.Builder builderPrivilegedApproval()
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
-
withApprovalDuration
public PrivilegedApproval withApprovalDuration(Duration approvalDuration)
-
getApprovalState
public Optional<ApprovalState> getApprovalState()
-
withApprovalState
public PrivilegedApproval withApprovalState(ApprovalState approvalState)
-
withApprovalType
public PrivilegedApproval withApprovalType(String approvalType)
-
withApproverReason
public PrivilegedApproval withApproverReason(String approverReason)
-
getEndDateTime
public Optional<OffsetDateTime> getEndDateTime()
-
withEndDateTime
public PrivilegedApproval withEndDateTime(OffsetDateTime endDateTime)
-
withRequestorReason
public PrivilegedApproval withRequestorReason(String requestorReason)
-
withRoleId
public PrivilegedApproval withRoleId(String roleId)
-
getStartDateTime
public Optional<OffsetDateTime> getStartDateTime()
-
withStartDateTime
public PrivilegedApproval withStartDateTime(OffsetDateTime startDateTime)
-
withUserId
public PrivilegedApproval withUserId(String userId)
-
withUnmappedField
public PrivilegedApproval withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getRequest
public PrivilegedRoleAssignmentRequestRequest getRequest()
-
getRoleInfo
public PrivilegedRoleRequest getRoleInfo()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public PrivilegedApproval patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public PrivilegedApproval put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-