Class AccessPackageResourceRequest

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.AccessPackageResourceRequest
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class AccessPackageResourceRequest extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • AccessPackageResourceRequest

      public AccessPackageResourceRequest()
      Instantiates a new AccessPackageResourceRequest and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static AccessPackageResourceRequest 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 AccessPackageResourceRequest
    • getCatalog

      @Nullable public AccessPackageCatalog getCatalog()
      Gets the catalog property value. The catalog property
      Returns:
      a AccessPackageCatalog
    • 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.
      Returns:
      a OffsetDateTime
    • 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>>
    • getRequestType

      @Nullable public AccessPackageRequestType getRequestType()
      Gets the requestType property value. The type of the request. Use adminAdd to add a resource, if the caller is an administrator or resource owner, adminUpdate to update a resource, or adminRemove to remove a resource.
      Returns:
      a AccessPackageRequestType
    • getResource

      @Nullable public AccessPackageResource getResource()
      Gets the resource property value. The resource property
      Returns:
      a AccessPackageResource
    • getState

      @Nullable public AccessPackageRequestState getState()
      Gets the state property value. The outcome of whether the service was able to add the resource to the catalog. The value is delivered if the resource was added or removed, and deliveryFailed if it couldn't be added or removed. Read-only.
      Returns:
      a AccessPackageRequestState
    • 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
    • setCatalog

      public void setCatalog(@Nullable AccessPackageCatalog value)
      Sets the catalog property value. The catalog property
      Parameters:
      value - Value to set for the catalog 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.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setRequestType

      public void setRequestType(@Nullable AccessPackageRequestType value)
      Sets the requestType property value. The type of the request. Use adminAdd to add a resource, if the caller is an administrator or resource owner, adminUpdate to update a resource, or adminRemove to remove a resource.
      Parameters:
      value - Value to set for the requestType property.
    • setResource

      public void setResource(@Nullable AccessPackageResource value)
      Sets the resource property value. The resource property
      Parameters:
      value - Value to set for the resource property.
    • setState

      public void setState(@Nullable AccessPackageRequestState value)
      Sets the state property value. The outcome of whether the service was able to add the resource to the catalog. The value is delivered if the resource was added or removed, and deliveryFailed if it couldn't be added or removed. Read-only.
      Parameters:
      value - Value to set for the state property.