Interface ExportSnapshotRecordSourceInfo.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ExportSnapshotRecordSourceInfo.Builder,ExportSnapshotRecordSourceInfo>,SdkBuilder<ExportSnapshotRecordSourceInfo.Builder,ExportSnapshotRecordSourceInfo>,SdkPojo
- Enclosing class:
- ExportSnapshotRecordSourceInfo
public static interface ExportSnapshotRecordSourceInfo.Builder extends SdkPojo, CopyableBuilder<ExportSnapshotRecordSourceInfo.Builder,ExportSnapshotRecordSourceInfo>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExportSnapshotRecordSourceInfo.Builderarn(String arn)The Amazon Resource Name (ARN) of the source instance or disk snapshot.ExportSnapshotRecordSourceInfo.BuildercreatedAt(Instant createdAt)The date when the source instance or disk snapshot was created.default ExportSnapshotRecordSourceInfo.BuilderdiskSnapshotInfo(Consumer<DiskSnapshotInfo.Builder> diskSnapshotInfo)A list of objects describing a disk snapshot.ExportSnapshotRecordSourceInfo.BuilderdiskSnapshotInfo(DiskSnapshotInfo diskSnapshotInfo)A list of objects describing a disk snapshot.ExportSnapshotRecordSourceInfo.BuilderfromResourceArn(String fromResourceArn)The Amazon Resource Name (ARN) of the snapshot's source instance or disk.ExportSnapshotRecordSourceInfo.BuilderfromResourceName(String fromResourceName)The name of the snapshot's source instance or disk.default ExportSnapshotRecordSourceInfo.BuilderinstanceSnapshotInfo(Consumer<InstanceSnapshotInfo.Builder> instanceSnapshotInfo)A list of objects describing an instance snapshot.ExportSnapshotRecordSourceInfo.BuilderinstanceSnapshotInfo(InstanceSnapshotInfo instanceSnapshotInfo)A list of objects describing an instance snapshot.ExportSnapshotRecordSourceInfo.Buildername(String name)The name of the source instance or disk snapshot.ExportSnapshotRecordSourceInfo.BuilderresourceType(String resourceType)The Lightsail resource type (InstanceSnapshotorDiskSnapshot).ExportSnapshotRecordSourceInfo.BuilderresourceType(ExportSnapshotRecordSourceType resourceType)The Lightsail resource type (InstanceSnapshotorDiskSnapshot).-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
resourceType
ExportSnapshotRecordSourceInfo.Builder resourceType(String resourceType)
The Lightsail resource type (
InstanceSnapshotorDiskSnapshot).- Parameters:
resourceType- The Lightsail resource type (InstanceSnapshotorDiskSnapshot).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExportSnapshotRecordSourceType,ExportSnapshotRecordSourceType
-
resourceType
ExportSnapshotRecordSourceInfo.Builder resourceType(ExportSnapshotRecordSourceType resourceType)
The Lightsail resource type (
InstanceSnapshotorDiskSnapshot).- Parameters:
resourceType- The Lightsail resource type (InstanceSnapshotorDiskSnapshot).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ExportSnapshotRecordSourceType,ExportSnapshotRecordSourceType
-
createdAt
ExportSnapshotRecordSourceInfo.Builder createdAt(Instant createdAt)
The date when the source instance or disk snapshot was created.
- Parameters:
createdAt- The date when the source instance or disk snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
ExportSnapshotRecordSourceInfo.Builder name(String name)
The name of the source instance or disk snapshot.
- Parameters:
name- The name of the source instance or disk snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
ExportSnapshotRecordSourceInfo.Builder arn(String arn)
The Amazon Resource Name (ARN) of the source instance or disk snapshot.
- Parameters:
arn- The Amazon Resource Name (ARN) of the source instance or disk snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromResourceName
ExportSnapshotRecordSourceInfo.Builder fromResourceName(String fromResourceName)
The name of the snapshot's source instance or disk.
- Parameters:
fromResourceName- The name of the snapshot's source instance or disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromResourceArn
ExportSnapshotRecordSourceInfo.Builder fromResourceArn(String fromResourceArn)
The Amazon Resource Name (ARN) of the snapshot's source instance or disk.
- Parameters:
fromResourceArn- The Amazon Resource Name (ARN) of the snapshot's source instance or disk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceSnapshotInfo
ExportSnapshotRecordSourceInfo.Builder instanceSnapshotInfo(InstanceSnapshotInfo instanceSnapshotInfo)
A list of objects describing an instance snapshot.
- Parameters:
instanceSnapshotInfo- A list of objects describing an instance snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceSnapshotInfo
default ExportSnapshotRecordSourceInfo.Builder instanceSnapshotInfo(Consumer<InstanceSnapshotInfo.Builder> instanceSnapshotInfo)
A list of objects describing an instance snapshot.
This is a convenience method that creates an instance of theInstanceSnapshotInfo.Builderavoiding the need to create one manually viaInstanceSnapshotInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceSnapshotInfo(InstanceSnapshotInfo).- Parameters:
instanceSnapshotInfo- a consumer that will call methods onInstanceSnapshotInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
instanceSnapshotInfo(InstanceSnapshotInfo)
-
diskSnapshotInfo
ExportSnapshotRecordSourceInfo.Builder diskSnapshotInfo(DiskSnapshotInfo diskSnapshotInfo)
A list of objects describing a disk snapshot.
- Parameters:
diskSnapshotInfo- A list of objects describing a disk snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
diskSnapshotInfo
default ExportSnapshotRecordSourceInfo.Builder diskSnapshotInfo(Consumer<DiskSnapshotInfo.Builder> diskSnapshotInfo)
A list of objects describing a disk snapshot.
This is a convenience method that creates an instance of theDiskSnapshotInfo.Builderavoiding the need to create one manually viaDiskSnapshotInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todiskSnapshotInfo(DiskSnapshotInfo).- Parameters:
diskSnapshotInfo- a consumer that will call methods onDiskSnapshotInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
diskSnapshotInfo(DiskSnapshotInfo)
-
-