Interface ReplicationRun.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ReplicationRun.Builder,ReplicationRun>,SdkBuilder<ReplicationRun.Builder,ReplicationRun>,SdkPojo
- Enclosing class:
- ReplicationRun
public static interface ReplicationRun.Builder extends SdkPojo, CopyableBuilder<ReplicationRun.Builder,ReplicationRun>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ReplicationRun.BuilderamiId(String amiId)The ID of the Amazon Machine Image (AMI) from the replication run.ReplicationRun.BuildercompletedTime(Instant completedTime)The completion time of the last replication run.ReplicationRun.Builderdescription(String description)The description of the replication run.ReplicationRun.Builderencrypted(Boolean encrypted)Indicates whether the replication run should produce an encrypted AMI.ReplicationRun.BuilderkmsKeyId(String kmsKeyId)The ID of the KMS key for replication jobs that produce encrypted AMIs.ReplicationRun.BuilderreplicationRunId(String replicationRunId)The ID of the replication run.ReplicationRun.BuilderscheduledStartTime(Instant scheduledStartTime)The start time of the next replication run.default ReplicationRun.BuilderstageDetails(Consumer<ReplicationRunStageDetails.Builder> stageDetails)Details about the current stage of the replication run.ReplicationRun.BuilderstageDetails(ReplicationRunStageDetails stageDetails)Details about the current stage of the replication run.ReplicationRun.Builderstate(String state)The state of the replication run.ReplicationRun.Builderstate(ReplicationRunState state)The state of the replication run.ReplicationRun.BuilderstatusMessage(String statusMessage)The description of the current status of the replication job.ReplicationRun.Buildertype(String type)The type of replication run.ReplicationRun.Buildertype(ReplicationRunType type)The type of replication run.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
replicationRunId
ReplicationRun.Builder replicationRunId(String replicationRunId)
The ID of the replication run.
- Parameters:
replicationRunId- The ID of the replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
ReplicationRun.Builder state(String state)
The state of the replication run.
- Parameters:
state- The state of the replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReplicationRunState,ReplicationRunState
-
state
ReplicationRun.Builder state(ReplicationRunState state)
The state of the replication run.
- Parameters:
state- The state of the replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReplicationRunState,ReplicationRunState
-
type
ReplicationRun.Builder type(String type)
The type of replication run.
- Parameters:
type- The type of replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReplicationRunType,ReplicationRunType
-
type
ReplicationRun.Builder type(ReplicationRunType type)
The type of replication run.
- Parameters:
type- The type of replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReplicationRunType,ReplicationRunType
-
stageDetails
ReplicationRun.Builder stageDetails(ReplicationRunStageDetails stageDetails)
Details about the current stage of the replication run.
- Parameters:
stageDetails- Details about the current stage of the replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stageDetails
default ReplicationRun.Builder stageDetails(Consumer<ReplicationRunStageDetails.Builder> stageDetails)
Details about the current stage of the replication run.
This is a convenience method that creates an instance of theReplicationRunStageDetails.Builderavoiding the need to create one manually viaReplicationRunStageDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostageDetails(ReplicationRunStageDetails).- Parameters:
stageDetails- a consumer that will call methods onReplicationRunStageDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
stageDetails(ReplicationRunStageDetails)
-
statusMessage
ReplicationRun.Builder statusMessage(String statusMessage)
The description of the current status of the replication job.
- Parameters:
statusMessage- The description of the current status of the replication job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amiId
ReplicationRun.Builder amiId(String amiId)
The ID of the Amazon Machine Image (AMI) from the replication run.
- Parameters:
amiId- The ID of the Amazon Machine Image (AMI) from the replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduledStartTime
ReplicationRun.Builder scheduledStartTime(Instant scheduledStartTime)
The start time of the next replication run.
- Parameters:
scheduledStartTime- The start time of the next replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completedTime
ReplicationRun.Builder completedTime(Instant completedTime)
The completion time of the last replication run.
- Parameters:
completedTime- The completion time of the last replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
ReplicationRun.Builder description(String description)
The description of the replication run.
- Parameters:
description- The description of the replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encrypted
ReplicationRun.Builder encrypted(Boolean encrypted)
Indicates whether the replication run should produce an encrypted AMI.
- Parameters:
encrypted- Indicates whether the replication run should produce an encrypted AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
ReplicationRun.Builder kmsKeyId(String kmsKeyId)
The ID of the KMS key for replication jobs that produce encrypted AMIs. This value can be any of the following:
-
KMS key ID
-
KMS key alias
-
ARN referring to the KMS key ID
-
ARN referring to the KMS key alias
If encrypted is true but a KMS key ID is not specified, the customer's default KMS key for Amazon EBS is used.
- Parameters:
kmsKeyId- The ID of the KMS key for replication jobs that produce encrypted AMIs. This value can be any of the following:-
KMS key ID
-
KMS key alias
-
ARN referring to the KMS key ID
-
ARN referring to the KMS key alias
If encrypted is true but a KMS key ID is not specified, the customer's default KMS key for Amazon EBS is used.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
-