Package com.microsoft.graph.models
Class AccessPackageAssignmentRequest
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.AccessPackageAssignmentRequest
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class AccessPackageAssignmentRequest
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newAccessPackageAssignmentRequest
and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreateFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the accessPackage property value.Gets the answers property value.Gets the assignment property value.Gets the completedDateTime property value.Gets the createdDateTime property value.Gets the customExtensionCalloutInstances property value.The deserialization information for the current modelGets the requestor property value.Gets the requestType property value.Gets the schedule property value.getState()
Gets the state property value.Gets the status property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setAccessPackage
(AccessPackage value) Sets the accessPackage property value.void
setAnswers
(List<AccessPackageAnswer> value) Sets the answers property value.void
Sets the assignment property value.void
Sets the completedDateTime property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
Sets the customExtensionCalloutInstances property value.void
setRequestor
(AccessPackageSubject value) Sets the requestor property value.void
Sets the requestType property value.void
Sets the schedule property value.void
Sets the state property value.void
Sets the status property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
AccessPackageAssignmentRequest
public AccessPackageAssignmentRequest()Instantiates a newAccessPackageAssignmentRequest
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static AccessPackageAssignmentRequest createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode
- The parse node to use to read the discriminator value and create the object- Returns:
- a
AccessPackageAssignmentRequest
-
getAccessPackage
Gets the accessPackage property value. The access package associated with the accessPackageAssignmentRequest. An access package defines the collections of resource roles and the policies for how one or more users can get access to those resources. Read-only. Nullable. Supports $expand.- Returns:
- a
AccessPackage
-
getAnswers
Gets the answers property value. Answers provided by the requestor to accessPackageQuestions asked of them at the time of request.- Returns:
- a
List<AccessPackageAnswer>
-
getAssignment
Gets the assignment property value. For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand.- Returns:
- a
AccessPackageAssignment
-
getCompletedDateTime
Gets the completedDateTime property value. The date of the end of processing, either successful or failure, of a request. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.- Returns:
- a
OffsetDateTime
-
getCreatedDateTime
Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter.- Returns:
- a
OffsetDateTime
-
getCustomExtensionCalloutInstances
Gets the customExtensionCalloutInstances property value. Information about all the custom extension calls that were made during the access package assignment workflow.- Returns:
- a
List<CustomExtensionCalloutInstance>
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getRequestor
Gets the requestor property value. The subject who requested or, if a direct assignment, was assigned. Read-only. Nullable. Supports $expand.- Returns:
- a
AccessPackageSubject
-
getRequestType
Gets the requestType property value. The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. Requests from the user have a requestType of userAdd, userUpdate, or userRemove. This property can't be changed once set.- Returns:
- a
AccessPackageRequestType
-
getSchedule
Gets the schedule property value. The range of dates that access is to be assigned to the requestor. This property can't be changed once set, but a new schedule for an assignment can be included in another userUpdate or UserExtend or adminUpdate assignment request.- Returns:
- a
EntitlementManagementSchedule
-
getState
Gets the state property value. The state of the request. The possible values are: submitted, pendingApproval, delivering, delivered, deliveryFailed, denied, scheduled, canceled, partiallyDelivered, unknownFutureValue. Read-only. Supports $filter (eq).- Returns:
- a
AccessPackageRequestState
-
getStatus
Gets the status property value. More information on the request processing status. Read-only.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAccessPackage
Sets the accessPackage property value. The access package associated with the accessPackageAssignmentRequest. An access package defines the collections of resource roles and the policies for how one or more users can get access to those resources. Read-only. Nullable. Supports $expand.- Parameters:
value
- Value to set for the accessPackage property.
-
setAnswers
Sets the answers property value. Answers provided by the requestor to accessPackageQuestions asked of them at the time of request.- Parameters:
value
- Value to set for the answers property.
-
setAssignment
Sets the assignment property value. For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand.- Parameters:
value
- Value to set for the assignment property.
-
setCompletedDateTime
Sets the completedDateTime property value. The date of the end of processing, either successful or failure, of a request. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.- Parameters:
value
- Value to set for the completedDateTime property.
-
setCreatedDateTime
Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter.- Parameters:
value
- Value to set for the createdDateTime property.
-
setCustomExtensionCalloutInstances
public void setCustomExtensionCalloutInstances(@Nullable List<CustomExtensionCalloutInstance> value) Sets the customExtensionCalloutInstances property value. Information about all the custom extension calls that were made during the access package assignment workflow.- Parameters:
value
- Value to set for the customExtensionCalloutInstances property.
-
setRequestor
Sets the requestor property value. The subject who requested or, if a direct assignment, was assigned. Read-only. Nullable. Supports $expand.- Parameters:
value
- Value to set for the requestor property.
-
setRequestType
Sets the requestType property value. The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd (not supported), unknownFutureValue. Requests from the user have a requestType of userAdd, userUpdate, or userRemove. This property can't be changed once set.- Parameters:
value
- Value to set for the requestType property.
-
setSchedule
Sets the schedule property value. The range of dates that access is to be assigned to the requestor. This property can't be changed once set, but a new schedule for an assignment can be included in another userUpdate or UserExtend or adminUpdate assignment request.- Parameters:
value
- Value to set for the schedule property.
-
setState
Sets the state property value. The state of the request. The possible values are: submitted, pendingApproval, delivering, delivered, deliveryFailed, denied, scheduled, canceled, partiallyDelivered, unknownFutureValue. Read-only. Supports $filter (eq).- Parameters:
value
- Value to set for the state property.
-
setStatus
Sets the status property value. More information on the request processing status. Read-only.- Parameters:
value
- Value to set for the status property.
-