Class ExportSnapshotRecordSourceInfo
- java.lang.Object
-
- software.amazon.awssdk.services.lightsail.model.ExportSnapshotRecordSourceInfo
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ExportSnapshotRecordSourceInfo.Builder,ExportSnapshotRecordSourceInfo>
@Generated("software.amazon.awssdk:codegen") public final class ExportSnapshotRecordSourceInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ExportSnapshotRecordSourceInfo.Builder,ExportSnapshotRecordSourceInfo>
Describes the source of an export snapshot record.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceExportSnapshotRecordSourceInfo.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The Amazon Resource Name (ARN) of the source instance or disk snapshot.static ExportSnapshotRecordSourceInfo.Builderbuilder()InstantcreatedAt()The date when the source instance or disk snapshot was created.DiskSnapshotInfodiskSnapshotInfo()A list of objects describing a disk snapshot.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfromResourceArn()The Amazon Resource Name (ARN) of the snapshot's source instance or disk.StringfromResourceName()The name of the snapshot's source instance or disk.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstanceSnapshotInfoinstanceSnapshotInfo()A list of objects describing an instance snapshot.Stringname()The name of the source instance or disk snapshot.ExportSnapshotRecordSourceTyperesourceType()The Lightsail resource type (InstanceSnapshotorDiskSnapshot).StringresourceTypeAsString()The Lightsail resource type (InstanceSnapshotorDiskSnapshot).List<SdkField<?>>sdkFields()static Class<? extends ExportSnapshotRecordSourceInfo.Builder>serializableBuilderClass()ExportSnapshotRecordSourceInfo.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
resourceType
public final ExportSnapshotRecordSourceType resourceType()
The Lightsail resource type (
InstanceSnapshotorDiskSnapshot).If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnExportSnapshotRecordSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The Lightsail resource type (
InstanceSnapshotorDiskSnapshot). - See Also:
ExportSnapshotRecordSourceType
-
resourceTypeAsString
public final String resourceTypeAsString()
The Lightsail resource type (
InstanceSnapshotorDiskSnapshot).If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnExportSnapshotRecordSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The Lightsail resource type (
InstanceSnapshotorDiskSnapshot). - See Also:
ExportSnapshotRecordSourceType
-
createdAt
public final Instant createdAt()
The date when the source instance or disk snapshot was created.
- Returns:
- The date when the source instance or disk snapshot was created.
-
name
public final String name()
The name of the source instance or disk snapshot.
- Returns:
- The name of the source instance or disk snapshot.
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the source instance or disk snapshot.
- Returns:
- The Amazon Resource Name (ARN) of the source instance or disk snapshot.
-
fromResourceName
public final String fromResourceName()
The name of the snapshot's source instance or disk.
- Returns:
- The name of the snapshot's source instance or disk.
-
fromResourceArn
public final String fromResourceArn()
The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
- Returns:
- The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
-
instanceSnapshotInfo
public final InstanceSnapshotInfo instanceSnapshotInfo()
A list of objects describing an instance snapshot.
- Returns:
- A list of objects describing an instance snapshot.
-
diskSnapshotInfo
public final DiskSnapshotInfo diskSnapshotInfo()
A list of objects describing a disk snapshot.
- Returns:
- A list of objects describing a disk snapshot.
-
toBuilder
public ExportSnapshotRecordSourceInfo.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ExportSnapshotRecordSourceInfo.Builder,ExportSnapshotRecordSourceInfo>
-
builder
public static ExportSnapshotRecordSourceInfo.Builder builder()
-
serializableBuilderClass
public static Class<? extends ExportSnapshotRecordSourceInfo.Builder> serializableBuilderClass()
-
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.
-
-