Class CreateReplicationJobRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateReplicationJobRequest.Builder,CreateReplicationJobRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final StringThe description of the replication job.final BooleanIndicates whether the replication job produces encrypted AMIs.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final IntegerThe time between consecutive replication runs, in hours.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest.final inthashCode()final StringkmsKeyId()The ID of the KMS key for replication jobs that produce encrypted AMIs.final LicenseTypeThe license type to be used for the AMI created by a successful replication run.final StringThe license type to be used for the AMI created by a successful replication run.final IntegerThe maximum number of SMS-created AMIs to retain.final StringroleName()The name of the IAM role to be used by the Server Migration Service.final BooleanrunOnce()Indicates whether to run the replication job one time.final InstantThe seed replication time.static Class<? extends CreateReplicationJobRequest.Builder> final StringserverId()The ID of the server.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
serverId
-
seedReplicationTime
The seed replication time.
- Returns:
- The seed replication time.
-
frequency
The time between consecutive replication runs, in hours.
- Returns:
- The time between consecutive replication runs, in hours.
-
runOnce
Indicates whether to run the replication job one time.
- Returns:
- Indicates whether to run the replication job one time.
-
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,
licenseTypewill returnLicenseType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlicenseTypeAsString().- Returns:
- The license type to be used for the AMI created by a successful replication run.
- See Also:
-
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,
licenseTypewill returnLicenseType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlicenseTypeAsString().- Returns:
- The license type to be used for the AMI created by a successful replication run.
- See Also:
-
roleName
The name of the IAM role to be used by the Server Migration Service.
- Returns:
- The name of the IAM role to be used by the Server Migration Service.
-
description
The description of the replication job.
- Returns:
- The description of the replication job.
-
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:
- 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.
-
encrypted
Indicates whether the replication job produces encrypted AMIs.
- Returns:
- Indicates whether the replication job produces encrypted AMIs.
-
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:
- 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.
-
-
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateReplicationJobRequest.Builder,CreateReplicationJobRequest> - Specified by:
toBuilderin classSmsRequest- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. 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, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkRequest- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-