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
  • Constructor Details

    • AccessPackageAssignmentRequest

      public AccessPackageAssignmentRequest()
      Instantiates a new AccessPackageAssignmentRequest 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

      @Nullable public AccessPackage 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

      @Nullable public List<AccessPackageAnswer> 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

      @Nullable public AccessPackageAssignment 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

      @Nullable public OffsetDateTime 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

      @Nullable public 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

      @Nullable public List<CustomExtensionCalloutInstance> 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getRequestor

      @Nullable public AccessPackageSubject 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

      @Nullable public AccessPackageRequestType 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

      @Nullable public EntitlementManagementSchedule 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

      @Nullable public AccessPackageRequestState 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

      @Nullable public String 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAccessPackage

      public void setAccessPackage(@Nullable AccessPackage value)
      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

      public void setAnswers(@Nullable List<AccessPackageAnswer> value)
      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

      public void setAssignment(@Nullable AccessPackageAssignment value)
      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

      public void setCompletedDateTime(@Nullable OffsetDateTime value)
      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

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      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

      public void setRequestor(@Nullable AccessPackageSubject value)
      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

      public void setRequestType(@Nullable AccessPackageRequestType value)
      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

      public void setSchedule(@Nullable EntitlementManagementSchedule value)
      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

      public void setState(@Nullable AccessPackageRequestState value)
      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

      public void setStatus(@Nullable String value)
      Sets the status property value. More information on the request processing status. Read-only.
      Parameters:
      value - Value to set for the status property.