Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RestoreArtifactBase
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the completionDateTime property value.Gets the destinationType property value.getError()
Gets the error property value.The deserialization information for the current modelGets the restorePoint property value.Gets the startDateTime property value.Gets the status property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the completionDateTime property value.void
Sets the destinationType property value.void
setError
(PublicError value) Sets the error property value.void
setRestorePoint
(RestorePoint value) Sets the restorePoint property value.void
setStartDateTime
(OffsetDateTime value) Sets the startDateTime property value.void
setStatus
(ArtifactRestoreStatus value) Sets the status property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
RestoreArtifactBase
public RestoreArtifactBase()Instantiates a newRestoreArtifactBase
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
Gets the completionDateTime property value. The time when restoration of restore artifact is completed.- Returns:
- a
OffsetDateTime
-
getDestinationType
Gets the destinationType property value. Indicates the restoration destination. The possible values are: new, inPlace, unknownFutureValue.- Returns:
- a
DestinationType
-
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
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
Gets the startDateTime property value. The time when restoration of restore artifact is started.- Returns:
- a
OffsetDateTime
-
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 -
setCompletionDateTime
Sets the completionDateTime property value. The time when restoration of restore artifact is completed.- Parameters:
value
- Value to set for the completionDateTime property.
-
setDestinationType
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
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
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
Sets the startDateTime property value. The time when restoration of restore artifact is started.- Parameters:
value
- Value to set for the startDateTime property.
-
setStatus
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.
-