Class TeamsAsyncOperation

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

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

    • TeamsAsyncOperation

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

    • createFromDiscriminatorValue

      @Nonnull public static TeamsAsyncOperation 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 TeamsAsyncOperation
    • getAttemptsCount

      @Nullable public Integer getAttemptsCount()
      Gets the attemptsCount property value. Number of times the operation was attempted before being marked successful or failed.
      Returns:
      a Integer
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. Time when the operation was created.
      Returns:
      a OffsetDateTime
    • getError

      @Nullable public OperationError getError()
      Gets the error property value. Any error that causes the async operation to fail.
      Returns:
      a OperationError
    • 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>>
    • getLastActionDateTime

      @Nullable public OffsetDateTime getLastActionDateTime()
      Gets the lastActionDateTime property value. Time when the async operation was last updated.
      Returns:
      a OffsetDateTime
    • getOperationType

      @Nullable public TeamsAsyncOperationType getOperationType()
      Gets the operationType property value. The operationType property
      Returns:
      a TeamsAsyncOperationType
    • getStatus

      @Nullable public TeamsAsyncOperationStatus getStatus()
      Gets the status property value. The status property
      Returns:
      a TeamsAsyncOperationStatus
    • getTargetResourceId

      @Nullable public String getTargetResourceId()
      Gets the targetResourceId property value. The ID of the object that's created or modified as result of this async operation, typically a team.
      Returns:
      a String
    • getTargetResourceLocation

      @Nullable public String getTargetResourceLocation()
      Gets the targetResourceLocation property value. The location of the object that's created or modified as result of this async operation. This URL should be treated as an opaque value and not parsed into its component paths.
      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
    • setAttemptsCount

      public void setAttemptsCount(@Nullable Integer value)
      Sets the attemptsCount property value. Number of times the operation was attempted before being marked successful or failed.
      Parameters:
      value - Value to set for the attemptsCount property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. Time when the operation was created.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setError

      public void setError(@Nullable OperationError value)
      Sets the error property value. Any error that causes the async operation to fail.
      Parameters:
      value - Value to set for the error property.
    • setLastActionDateTime

      public void setLastActionDateTime(@Nullable OffsetDateTime value)
      Sets the lastActionDateTime property value. Time when the async operation was last updated.
      Parameters:
      value - Value to set for the lastActionDateTime property.
    • setOperationType

      public void setOperationType(@Nullable TeamsAsyncOperationType value)
      Sets the operationType property value. The operationType property
      Parameters:
      value - Value to set for the operationType property.
    • setStatus

      public void setStatus(@Nullable TeamsAsyncOperationStatus value)
      Sets the status property value. The status property
      Parameters:
      value - Value to set for the status property.
    • setTargetResourceId

      public void setTargetResourceId(@Nullable String value)
      Sets the targetResourceId property value. The ID of the object that's created or modified as result of this async operation, typically a team.
      Parameters:
      value - Value to set for the targetResourceId property.
    • setTargetResourceLocation

      public void setTargetResourceLocation(@Nullable String value)
      Sets the targetResourceLocation property value. The location of the object that's created or modified as result of this async operation. This URL should be treated as an opaque value and not parsed into its component paths.
      Parameters:
      value - Value to set for the targetResourceLocation property.