Class RestoreArtifactBase

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.RestoreArtifactBase
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel
Direct Known Subclasses:
DriveRestoreArtifact, MailboxRestoreArtifact, SiteRestoreArtifact

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

    • RestoreArtifactBase

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

    • createFromDiscriminatorValue

      @Nonnull public static RestoreArtifactBase 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 RestoreArtifactBase
    • getCompletionDateTime

      @Nullable public OffsetDateTime getCompletionDateTime()
      Gets the completionDateTime property value. The time when restoration of restore artifact is completed.
      Returns:
      a OffsetDateTime
    • getDestinationType

      @Nullable public DestinationType getDestinationType()
      Gets the destinationType property value. Indicates the restoration destination. The possible values are: new, inPlace, unknownFutureValue.
      Returns:
      a DestinationType
    • getError

      @Nullable public PublicError getError()
      Gets the error property value. Contains error details if the restore session fails or completes with an error.
      Returns:
      a PublicError
    • 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>>
    • getRestorePoint

      @Nullable public RestorePoint getRestorePoint()
      Gets the restorePoint property value. Represents the date and time when an artifact is protected by a protectionPolicy and can be restored.
      Returns:
      a RestorePoint
    • getStartDateTime

      @Nullable public OffsetDateTime getStartDateTime()
      Gets the startDateTime property value. The time when restoration of restore artifact is started.
      Returns:
      a OffsetDateTime
    • getStatus

      @Nullable public ArtifactRestoreStatus getStatus()
      Gets the status property value. The individual restoration status of the restore artifact. The possible values are: added, scheduling, scheduled, inProgress, succeeded, failed, unknownFutureValue.
      Returns:
      a ArtifactRestoreStatus
    • 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
    • setCompletionDateTime

      public void setCompletionDateTime(@Nullable OffsetDateTime value)
      Sets the completionDateTime property value. The time when restoration of restore artifact is completed.
      Parameters:
      value - Value to set for the completionDateTime property.
    • setDestinationType

      public void setDestinationType(@Nullable DestinationType value)
      Sets the destinationType property value. Indicates the restoration destination. The possible values are: new, inPlace, unknownFutureValue.
      Parameters:
      value - Value to set for the destinationType property.
    • setError

      public void setError(@Nullable PublicError value)
      Sets the error property value. Contains error details if the restore session fails or completes with an error.
      Parameters:
      value - Value to set for the error property.
    • setRestorePoint

      public void setRestorePoint(@Nullable RestorePoint value)
      Sets the restorePoint property value. Represents the date and time when an artifact is protected by a protectionPolicy and can be restored.
      Parameters:
      value - Value to set for the restorePoint property.
    • setStartDateTime

      public void setStartDateTime(@Nullable OffsetDateTime value)
      Sets the startDateTime property value. The time when restoration of restore artifact is started.
      Parameters:
      value - Value to set for the startDateTime property.
    • setStatus

      public void setStatus(@Nullable ArtifactRestoreStatus value)
      Sets the status property value. The individual restoration status of the restore artifact. The possible values are: added, scheduling, scheduled, inProgress, succeeded, failed, unknownFutureValue.
      Parameters:
      value - Value to set for the status property.