Interface CreateReplicationJobRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateReplicationJobRequest.Builder,
,CreateReplicationJobRequest> SdkBuilder<CreateReplicationJobRequest.Builder,
,CreateReplicationJobRequest> SdkPojo
,SdkRequest.Builder
,SmsRequest.Builder
- Enclosing class:
CreateReplicationJobRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The description of the replication job.Indicates whether the replication job produces encrypted AMIs.The time between consecutive replication runs, in hours.The ID of the KMS key for replication jobs that produce encrypted AMIs.licenseType
(String licenseType) The license type to be used for the AMI created by a successful replication run.licenseType
(LicenseType licenseType) The license type to be used for the AMI created by a successful replication run.numberOfRecentAmisToKeep
(Integer numberOfRecentAmisToKeep) The maximum number of SMS-created AMIs to retain.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The name of the IAM role to be used by the Server Migration Service.Indicates whether to run the replication job one time.seedReplicationTime
(Instant seedReplicationTime) The seed replication time.The ID of the server.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
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
Methods inherited from interface software.amazon.awssdk.services.sms.model.SmsRequest.Builder
build
-
Method Details
-
serverId
The ID of the server.
- Parameters:
serverId
- The ID of the server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
seedReplicationTime
The seed replication time.
- Parameters:
seedReplicationTime
- The seed replication time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
frequency
The time between consecutive replication runs, in hours.
- Parameters:
frequency
- The time between consecutive replication runs, in hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runOnce
Indicates whether to run the replication job one time.
- Parameters:
runOnce
- Indicates whether to run the replication job one time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
licenseType
The license type to be used for the AMI created by a successful replication run.
- Parameters:
licenseType
- The license type to be used for the AMI created by a successful replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
licenseType
The license type to be used for the AMI created by a successful replication run.
- Parameters:
licenseType
- The license type to be used for the AMI created by a successful replication run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
roleName
The name of the IAM role to be used by the Server Migration Service.
- Parameters:
roleName
- The name of the IAM role to be used by the Server Migration Service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the replication job.
- Parameters:
description
- The description of the replication job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
numberOfRecentAmisToKeep
The maximum number of SMS-created AMIs to retain. The oldest is deleted after the maximum number is reached and a new AMI is created.
- Parameters:
numberOfRecentAmisToKeep
- The maximum number of SMS-created AMIs to retain. The oldest is deleted after the maximum number is reached and a new AMI is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encrypted
Indicates whether the replication job produces encrypted AMIs.
- Parameters:
encrypted
- Indicates whether the replication job produces encrypted AMIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
-
overrideConfiguration
CreateReplicationJobRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateReplicationJobRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-