Class CreateSnapshotResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.storagegateway.model.StorageGatewayResponse
-
- software.amazon.awssdk.services.storagegateway.model.CreateSnapshotResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateSnapshotResponse.Builder,CreateSnapshotResponse>
@Generated("software.amazon.awssdk:codegen") public final class CreateSnapshotResponse extends StorageGatewayResponse implements ToCopyableBuilder<CreateSnapshotResponse.Builder,CreateSnapshotResponse>
A JSON object containing the following fields:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateSnapshotResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateSnapshotResponse.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends CreateSnapshotResponse.Builder>serializableBuilderClass()StringsnapshotId()The snapshot ID that is used to refer to the snapshot in future operations such as describing snapshots (Amazon Elastic Compute Cloud APIDescribeSnapshots) or creating a volume from a snapshot (CreateStorediSCSIVolume).CreateSnapshotResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringvolumeARN()The Amazon Resource Name (ARN) of the volume of which the snapshot was taken.-
Methods inherited from class software.amazon.awssdk.services.storagegateway.model.StorageGatewayResponse
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
-
volumeARN
public final String volumeARN()
The Amazon Resource Name (ARN) of the volume of which the snapshot was taken.
- Returns:
- The Amazon Resource Name (ARN) of the volume of which the snapshot was taken.
-
snapshotId
public final String snapshotId()
The snapshot ID that is used to refer to the snapshot in future operations such as describing snapshots (Amazon Elastic Compute Cloud API
DescribeSnapshots) or creating a volume from a snapshot (CreateStorediSCSIVolume).- Returns:
- The snapshot ID that is used to refer to the snapshot in future operations such as describing snapshots
(Amazon Elastic Compute Cloud API
DescribeSnapshots) or creating a volume from a snapshot (CreateStorediSCSIVolume).
-
toBuilder
public CreateSnapshotResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateSnapshotResponse.Builder,CreateSnapshotResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static CreateSnapshotResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateSnapshotResponse.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
-
-