@Generated(value="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.
Modifier and Type | Class and Description |
---|---|
static interface |
ExportSnapshotRecordSourceInfo.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The Amazon Resource Name (ARN) of the source instance or disk snapshot.
|
static ExportSnapshotRecordSourceInfo.Builder |
builder() |
Instant |
createdAt()
The date when the source instance or disk snapshot was created.
|
DiskSnapshotInfo |
diskSnapshotInfo()
A list of objects describing a disk snapshot.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
String |
fromResourceArn()
The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
|
String |
fromResourceName()
The name of the snapshot's source instance or disk.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
InstanceSnapshotInfo |
instanceSnapshotInfo()
A list of objects describing an instance snapshot.
|
String |
name()
The name of the source instance or disk snapshot.
|
ExportSnapshotRecordSourceType |
resourceType()
The Lightsail resource type (e.g.,
InstanceSnapshot or DiskSnapshot ). |
String |
resourceTypeAsString()
The Lightsail resource type (e.g.,
InstanceSnapshot or DiskSnapshot ). |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ExportSnapshotRecordSourceInfo.Builder> |
serializableBuilderClass() |
ExportSnapshotRecordSourceInfo.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final ExportSnapshotRecordSourceType resourceType()
The Lightsail resource type (e.g., InstanceSnapshot
or DiskSnapshot
).
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return ExportSnapshotRecordSourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from resourceTypeAsString()
.
InstanceSnapshot
or DiskSnapshot
).ExportSnapshotRecordSourceType
public final String resourceTypeAsString()
The Lightsail resource type (e.g., InstanceSnapshot
or DiskSnapshot
).
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return ExportSnapshotRecordSourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from resourceTypeAsString()
.
InstanceSnapshot
or DiskSnapshot
).ExportSnapshotRecordSourceType
public final Instant createdAt()
The date when the source instance or disk snapshot was created.
public final String name()
The name of the source instance or disk snapshot.
public final String arn()
The Amazon Resource Name (ARN) of the source instance or disk snapshot.
public final String fromResourceName()
The name of the snapshot's source instance or disk.
public final String fromResourceArn()
The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
public final InstanceSnapshotInfo instanceSnapshotInfo()
A list of objects describing an instance snapshot.
public final DiskSnapshotInfo diskSnapshotInfo()
A list of objects describing a disk snapshot.
public ExportSnapshotRecordSourceInfo.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ExportSnapshotRecordSourceInfo.Builder,ExportSnapshotRecordSourceInfo>
public static ExportSnapshotRecordSourceInfo.Builder builder()
public static Class<? extends ExportSnapshotRecordSourceInfo.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()