Package odata.msgraph.client.beta.entity
Class GovernanceRoleAssignmentRequest
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.GovernanceRoleAssignmentRequest
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class GovernanceRoleAssignmentRequest extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGovernanceRoleAssignmentRequest.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringassignmentStateprotected StringlinkedEligibleRoleAssignmentIdprotected Stringreasonprotected OffsetDateTimerequestedDateTimeprotected StringresourceIdprotected StringroleDefinitionIdprotected GovernanceSchedulescheduleprotected GovernanceRoleAssignmentRequestStatusstatusprotected StringsubjectIdprotected Stringtype-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGovernanceRoleAssignmentRequest()
-
Method Summary
-
-
-
Field Detail
-
assignmentState
protected String assignmentState
-
linkedEligibleRoleAssignmentId
protected String linkedEligibleRoleAssignmentId
-
reason
protected String reason
-
requestedDateTime
protected OffsetDateTime requestedDateTime
-
resourceId
protected String resourceId
-
roleDefinitionId
protected String roleDefinitionId
-
schedule
protected GovernanceSchedule schedule
-
status
protected GovernanceRoleAssignmentRequestStatus status
-
subjectId
protected String subjectId
-
type
protected String type
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderGovernanceRoleAssignmentRequest
public static GovernanceRoleAssignmentRequest.Builder builderGovernanceRoleAssignmentRequest()
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
-
withAssignmentState
public GovernanceRoleAssignmentRequest withAssignmentState(String assignmentState)
-
withLinkedEligibleRoleAssignmentId
public GovernanceRoleAssignmentRequest withLinkedEligibleRoleAssignmentId(String linkedEligibleRoleAssignmentId)
-
withReason
public GovernanceRoleAssignmentRequest withReason(String reason)
-
getRequestedDateTime
public Optional<OffsetDateTime> getRequestedDateTime()
-
withRequestedDateTime
public GovernanceRoleAssignmentRequest withRequestedDateTime(OffsetDateTime requestedDateTime)
-
withResourceId
public GovernanceRoleAssignmentRequest withResourceId(String resourceId)
-
withRoleDefinitionId
public GovernanceRoleAssignmentRequest withRoleDefinitionId(String roleDefinitionId)
-
getSchedule
public Optional<GovernanceSchedule> getSchedule()
-
withSchedule
public GovernanceRoleAssignmentRequest withSchedule(GovernanceSchedule schedule)
-
getStatus
public Optional<GovernanceRoleAssignmentRequestStatus> getStatus()
-
withStatus
public GovernanceRoleAssignmentRequest withStatus(GovernanceRoleAssignmentRequestStatus status)
-
withSubjectId
public GovernanceRoleAssignmentRequest withSubjectId(String subjectId)
-
withType
public GovernanceRoleAssignmentRequest withType(String type)
-
withUnmappedField
public GovernanceRoleAssignmentRequest withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getResource
public GovernanceResourceRequest getResource()
-
getRoleDefinition
public GovernanceRoleDefinitionRequest getRoleDefinition()
-
getSubject
public GovernanceSubjectRequest getSubject()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public GovernanceRoleAssignmentRequest patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public GovernanceRoleAssignmentRequest put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
cancel
public com.github.davidmoten.odata.client.ActionRequestNoReturn cancel()
-
updateRequest
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<GovernanceRoleAssignmentRequest> updateRequest(String decision, String assignmentState, GovernanceSchedule schedule, String reason)
-
-