Class RestoreSnapshotFromRecycleBinResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.ec2.model.Ec2Response
-
- software.amazon.awssdk.services.ec2.model.RestoreSnapshotFromRecycleBinResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<RestoreSnapshotFromRecycleBinResponse.Builder,RestoreSnapshotFromRecycleBinResponse>
@Generated("software.amazon.awssdk:codegen") public final class RestoreSnapshotFromRecycleBinResponse extends Ec2Response implements ToCopyableBuilder<RestoreSnapshotFromRecycleBinResponse.Builder,RestoreSnapshotFromRecycleBinResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRestoreSnapshotFromRecycleBinResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RestoreSnapshotFromRecycleBinResponse.Builderbuilder()Stringdescription()The description for the snapshot.Booleanencrypted()Indicates whether the snapshot is encrypted.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringoutpostArn()The ARN of the Outpost on which the snapshot is stored.StringownerId()The ID of the Amazon Web Services account that owns the EBS snapshot.Stringprogress()The progress of the snapshot, as a percentage.List<SdkField<?>>sdkFields()static Class<? extends RestoreSnapshotFromRecycleBinResponse.Builder>serializableBuilderClass()StringsnapshotId()The ID of the snapshot.SSETypesseType()Reserved for future use.StringsseTypeAsString()Reserved for future use.InstantstartTime()The time stamp when the snapshot was initiated.SnapshotStatestate()The state of the snapshot.StringstateAsString()The state of the snapshot.RestoreSnapshotFromRecycleBinResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvolumeId()The ID of the volume that was used to create the snapshot.IntegervolumeSize()The size of the volume, in GiB.-
Methods inherited from class software.amazon.awssdk.services.ec2.model.Ec2Response
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
snapshotId
public final String snapshotId()
The ID of the snapshot.
- Returns:
- The ID of the snapshot.
-
outpostArn
public final String outpostArn()
The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.
- Returns:
- The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.
-
description
public final String description()
The description for the snapshot.
- Returns:
- The description for the snapshot.
-
encrypted
public final Boolean encrypted()
Indicates whether the snapshot is encrypted.
- Returns:
- Indicates whether the snapshot is encrypted.
-
ownerId
public final String ownerId()
The ID of the Amazon Web Services account that owns the EBS snapshot.
- Returns:
- The ID of the Amazon Web Services account that owns the EBS snapshot.
-
progress
public final String progress()
The progress of the snapshot, as a percentage.
- Returns:
- The progress of the snapshot, as a percentage.
-
startTime
public final Instant startTime()
The time stamp when the snapshot was initiated.
- Returns:
- The time stamp when the snapshot was initiated.
-
state
public final SnapshotState state()
The state of the snapshot.
If the service returns an enum value that is not available in the current SDK version,
statewill returnSnapshotState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the snapshot.
- See Also:
SnapshotState
-
stateAsString
public final String stateAsString()
The state of the snapshot.
If the service returns an enum value that is not available in the current SDK version,
statewill returnSnapshotState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the snapshot.
- See Also:
SnapshotState
-
volumeId
public final String volumeId()
The ID of the volume that was used to create the snapshot.
- Returns:
- The ID of the volume that was used to create the snapshot.
-
volumeSize
public final Integer volumeSize()
The size of the volume, in GiB.
- Returns:
- The size of the volume, in GiB.
-
sseType
public final SSEType sseType()
Reserved for future use.
If the service returns an enum value that is not available in the current SDK version,
sseTypewill returnSSEType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsseTypeAsString().- Returns:
- Reserved for future use.
- See Also:
SSEType
-
sseTypeAsString
public final String sseTypeAsString()
Reserved for future use.
If the service returns an enum value that is not available in the current SDK version,
sseTypewill returnSSEType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsseTypeAsString().- Returns:
- Reserved for future use.
- See Also:
SSEType
-
toBuilder
public RestoreSnapshotFromRecycleBinResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RestoreSnapshotFromRecycleBinResponse.Builder,RestoreSnapshotFromRecycleBinResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static RestoreSnapshotFromRecycleBinResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends RestoreSnapshotFromRecycleBinResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-