@Generated(value="software.amazon.awssdk:codegen") public final class CreateReplicationJobRequest extends SmsRequest implements ToCopyableBuilder<CreateReplicationJobRequest.Builder,CreateReplicationJobRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateReplicationJobRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateReplicationJobRequest.Builder |
builder() |
String |
description()
The description of the replication job.
|
Boolean |
encrypted()
When true, the replication job produces encrypted AMIs.
|
boolean |
equals(Object obj) |
Integer |
frequency()
The time between consecutive replication runs, in hours.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
kmsKeyId()
KMS key ID for replication jobs that produce encrypted AMIs.
|
LicenseType |
licenseType()
The license type to be used for the AMI created by a successful replication run.
|
String |
licenseTypeAsString()
The license type to be used for the AMI created by a successful replication run.
|
Integer |
numberOfRecentAmisToKeep()
The maximum number of SMS-created AMIs to retain.
|
String |
roleName()
The name of the IAM role to be used by the AWS SMS.
|
Boolean |
runOnce()
|
List<SdkField<?>> |
sdkFields() |
Instant |
seedReplicationTime()
The seed replication time.
|
static Class<? extends CreateReplicationJobRequest.Builder> |
serializableBuilderClass() |
String |
serverId()
The identifier of the server.
|
CreateReplicationJobRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String serverId()
The identifier of the server.
public Instant seedReplicationTime()
The seed replication time.
public Integer frequency()
The time between consecutive replication runs, in hours.
public Boolean runOnce()
public LicenseType licenseType()
The license type to be used for the AMI created by a successful replication run.
If the service returns an enum value that is not available in the current SDK version, licenseType
will
return LicenseType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
licenseTypeAsString()
.
LicenseType
public String licenseTypeAsString()
The license type to be used for the AMI created by a successful replication run.
If the service returns an enum value that is not available in the current SDK version, licenseType
will
return LicenseType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
licenseTypeAsString()
.
LicenseType
public String roleName()
The name of the IAM role to be used by the AWS SMS.
public String description()
The description of the replication job.
public Integer numberOfRecentAmisToKeep()
The maximum number of SMS-created AMIs to retain. The oldest will be deleted once the maximum number is reached and a new AMI is created.
public Boolean encrypted()
When true, the replication job produces encrypted AMIs. See also KmsKeyId
below.
KmsKeyId
below.public String kmsKeyId()
KMS key ID for replication jobs that produce encrypted AMIs. Can be any of the following:
KMS key ID
KMS key alias
ARN referring to KMS key ID
ARN referring to KMS key alias
If encrypted is true but a KMS key id is not specified, the customer's default KMS key for EBS is used.
KMS key ID
KMS key alias
ARN referring to KMS key ID
ARN referring to KMS key alias
If encrypted is true but a KMS key id is not specified, the customer's default KMS key for EBS is used.
public CreateReplicationJobRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateReplicationJobRequest.Builder,CreateReplicationJobRequest>
toBuilder
in class SmsRequest
public static CreateReplicationJobRequest.Builder builder()
public static Class<? extends CreateReplicationJobRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.