@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReplicationJob extends Object implements Serializable, Cloneable, StructuredPojo
Represents a replication job.
Constructor and Description |
---|
ReplicationJob() |
Modifier and Type | Method and Description |
---|---|
ReplicationJob |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The description of the replication job.
|
Boolean |
getEncrypted()
Whether the replication job should produce encrypted AMIs or not.
|
Integer |
getFrequency()
The time between consecutive replication runs, in hours.
|
String |
getKmsKeyId()
KMS key ID for replication jobs that produce encrypted AMIs.
|
String |
getLatestAmiId()
The ID of the latest Amazon Machine Image (AMI).
|
String |
getLicenseType()
The license type to be used for the AMI created by a successful replication run.
|
Date |
getNextReplicationRunStartTime()
The start time of the next replication run.
|
Integer |
getNumberOfRecentAmisToKeep()
Number of recent AMIs to keep in the customer's account for a replication job.
|
String |
getReplicationJobId()
The identifier of the replication job.
|
List<ReplicationRun> |
getReplicationRunList()
Information about the replication runs.
|
String |
getRoleName()
The name of the IAM role to be used by the Server Migration Service.
|
Boolean |
getRunOnce()
|
Date |
getSeedReplicationTime()
The seed replication time.
|
String |
getServerId()
The identifier of the server.
|
String |
getServerType()
The type of server.
|
String |
getState()
The state of the replication job.
|
String |
getStatusMessage()
The description of the current status of the replication job.
|
VmServer |
getVmServer()
Information about the VM server.
|
int |
hashCode() |
Boolean |
isEncrypted()
Whether the replication job should produce encrypted AMIs or not.
|
Boolean |
isRunOnce()
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
The description of the replication job.
|
void |
setEncrypted(Boolean encrypted)
Whether the replication job should produce encrypted AMIs or not.
|
void |
setFrequency(Integer frequency)
The time between consecutive replication runs, in hours.
|
void |
setKmsKeyId(String kmsKeyId)
KMS key ID for replication jobs that produce encrypted AMIs.
|
void |
setLatestAmiId(String latestAmiId)
The ID of the latest Amazon Machine Image (AMI).
|
void |
setLicenseType(LicenseType licenseType)
The license type to be used for the AMI created by a successful replication run.
|
void |
setLicenseType(String licenseType)
The license type to be used for the AMI created by a successful replication run.
|
void |
setNextReplicationRunStartTime(Date nextReplicationRunStartTime)
The start time of the next replication run.
|
void |
setNumberOfRecentAmisToKeep(Integer numberOfRecentAmisToKeep)
Number of recent AMIs to keep in the customer's account for a replication job.
|
void |
setReplicationJobId(String replicationJobId)
The identifier of the replication job.
|
void |
setReplicationRunList(Collection<ReplicationRun> replicationRunList)
Information about the replication runs.
|
void |
setRoleName(String roleName)
The name of the IAM role to be used by the Server Migration Service.
|
void |
setRunOnce(Boolean runOnce)
|
void |
setSeedReplicationTime(Date seedReplicationTime)
The seed replication time.
|
void |
setServerId(String serverId)
The identifier of the server.
|
void |
setServerType(ServerType serverType)
The type of server.
|
void |
setServerType(String serverType)
The type of server.
|
void |
setState(ReplicationJobState state)
The state of the replication job.
|
void |
setState(String state)
The state of the replication job.
|
void |
setStatusMessage(String statusMessage)
The description of the current status of the replication job.
|
void |
setVmServer(VmServer vmServer)
Information about the VM server.
|
String |
toString()
Returns a string representation of this object.
|
ReplicationJob |
withDescription(String description)
The description of the replication job.
|
ReplicationJob |
withEncrypted(Boolean encrypted)
Whether the replication job should produce encrypted AMIs or not.
|
ReplicationJob |
withFrequency(Integer frequency)
The time between consecutive replication runs, in hours.
|
ReplicationJob |
withKmsKeyId(String kmsKeyId)
KMS key ID for replication jobs that produce encrypted AMIs.
|
ReplicationJob |
withLatestAmiId(String latestAmiId)
The ID of the latest Amazon Machine Image (AMI).
|
ReplicationJob |
withLicenseType(LicenseType licenseType)
The license type to be used for the AMI created by a successful replication run.
|
ReplicationJob |
withLicenseType(String licenseType)
The license type to be used for the AMI created by a successful replication run.
|
ReplicationJob |
withNextReplicationRunStartTime(Date nextReplicationRunStartTime)
The start time of the next replication run.
|
ReplicationJob |
withNumberOfRecentAmisToKeep(Integer numberOfRecentAmisToKeep)
Number of recent AMIs to keep in the customer's account for a replication job.
|
ReplicationJob |
withReplicationJobId(String replicationJobId)
The identifier of the replication job.
|
ReplicationJob |
withReplicationRunList(Collection<ReplicationRun> replicationRunList)
Information about the replication runs.
|
ReplicationJob |
withReplicationRunList(ReplicationRun... replicationRunList)
Information about the replication runs.
|
ReplicationJob |
withRoleName(String roleName)
The name of the IAM role to be used by the Server Migration Service.
|
ReplicationJob |
withRunOnce(Boolean runOnce)
|
ReplicationJob |
withSeedReplicationTime(Date seedReplicationTime)
The seed replication time.
|
ReplicationJob |
withServerId(String serverId)
The identifier of the server.
|
ReplicationJob |
withServerType(ServerType serverType)
The type of server.
|
ReplicationJob |
withServerType(String serverType)
The type of server.
|
ReplicationJob |
withState(ReplicationJobState state)
The state of the replication job.
|
ReplicationJob |
withState(String state)
The state of the replication job.
|
ReplicationJob |
withStatusMessage(String statusMessage)
The description of the current status of the replication job.
|
ReplicationJob |
withVmServer(VmServer vmServer)
Information about the VM server.
|
public void setReplicationJobId(String replicationJobId)
The identifier of the replication job.
replicationJobId
- The identifier of the replication job.public String getReplicationJobId()
The identifier of the replication job.
public ReplicationJob withReplicationJobId(String replicationJobId)
The identifier of the replication job.
replicationJobId
- The identifier of the replication job.public void setServerId(String serverId)
The identifier of the server.
serverId
- The identifier of the server.public String getServerId()
The identifier of the server.
public ReplicationJob withServerId(String serverId)
The identifier of the server.
serverId
- The identifier of the server.public void setServerType(String serverType)
The type of server.
serverType
- The type of server.ServerType
public String getServerType()
The type of server.
ServerType
public ReplicationJob withServerType(String serverType)
The type of server.
serverType
- The type of server.ServerType
public void setServerType(ServerType serverType)
The type of server.
serverType
- The type of server.ServerType
public ReplicationJob withServerType(ServerType serverType)
The type of server.
serverType
- The type of server.ServerType
public void setVmServer(VmServer vmServer)
Information about the VM server.
vmServer
- Information about the VM server.public VmServer getVmServer()
Information about the VM server.
public ReplicationJob withVmServer(VmServer vmServer)
Information about the VM server.
vmServer
- Information about the VM server.public void setSeedReplicationTime(Date seedReplicationTime)
The seed replication time.
seedReplicationTime
- The seed replication time.public Date getSeedReplicationTime()
The seed replication time.
public ReplicationJob withSeedReplicationTime(Date seedReplicationTime)
The seed replication time.
seedReplicationTime
- The seed replication time.public void setFrequency(Integer frequency)
The time between consecutive replication runs, in hours.
frequency
- The time between consecutive replication runs, in hours.public Integer getFrequency()
The time between consecutive replication runs, in hours.
public ReplicationJob withFrequency(Integer frequency)
The time between consecutive replication runs, in hours.
frequency
- The time between consecutive replication runs, in hours.public void setRunOnce(Boolean runOnce)
runOnce
- public Boolean getRunOnce()
public ReplicationJob withRunOnce(Boolean runOnce)
runOnce
- public Boolean isRunOnce()
public void setNextReplicationRunStartTime(Date nextReplicationRunStartTime)
The start time of the next replication run.
nextReplicationRunStartTime
- The start time of the next replication run.public Date getNextReplicationRunStartTime()
The start time of the next replication run.
public ReplicationJob withNextReplicationRunStartTime(Date nextReplicationRunStartTime)
The start time of the next replication run.
nextReplicationRunStartTime
- The start time of the next replication run.public void setLicenseType(String licenseType)
The license type to be used for the AMI created by a successful replication run.
licenseType
- The license type to be used for the AMI created by a successful replication run.LicenseType
public String getLicenseType()
The license type to be used for the AMI created by a successful replication run.
LicenseType
public ReplicationJob withLicenseType(String licenseType)
The license type to be used for the AMI created by a successful replication run.
licenseType
- The license type to be used for the AMI created by a successful replication run.LicenseType
public void setLicenseType(LicenseType licenseType)
The license type to be used for the AMI created by a successful replication run.
licenseType
- The license type to be used for the AMI created by a successful replication run.LicenseType
public ReplicationJob withLicenseType(LicenseType licenseType)
The license type to be used for the AMI created by a successful replication run.
licenseType
- The license type to be used for the AMI created by a successful replication run.LicenseType
public void setRoleName(String roleName)
The name of the IAM role to be used by the Server Migration Service.
roleName
- The name of the IAM role to be used by the Server Migration Service.public String getRoleName()
The name of the IAM role to be used by the Server Migration Service.
public ReplicationJob withRoleName(String roleName)
The name of the IAM role to be used by the Server Migration Service.
roleName
- The name of the IAM role to be used by the Server Migration Service.public void setLatestAmiId(String latestAmiId)
The ID of the latest Amazon Machine Image (AMI).
latestAmiId
- The ID of the latest Amazon Machine Image (AMI).public String getLatestAmiId()
The ID of the latest Amazon Machine Image (AMI).
public ReplicationJob withLatestAmiId(String latestAmiId)
The ID of the latest Amazon Machine Image (AMI).
latestAmiId
- The ID of the latest Amazon Machine Image (AMI).public void setState(String state)
The state of the replication job.
state
- The state of the replication job.ReplicationJobState
public String getState()
The state of the replication job.
ReplicationJobState
public ReplicationJob withState(String state)
The state of the replication job.
state
- The state of the replication job.ReplicationJobState
public void setState(ReplicationJobState state)
The state of the replication job.
state
- The state of the replication job.ReplicationJobState
public ReplicationJob withState(ReplicationJobState state)
The state of the replication job.
state
- The state of the replication job.ReplicationJobState
public void setStatusMessage(String statusMessage)
The description of the current status of the replication job.
statusMessage
- The description of the current status of the replication job.public String getStatusMessage()
The description of the current status of the replication job.
public ReplicationJob withStatusMessage(String statusMessage)
The description of the current status of the replication job.
statusMessage
- The description of the current status of the replication job.public void setDescription(String description)
The description of the replication job.
description
- The description of the replication job.public String getDescription()
The description of the replication job.
public ReplicationJob withDescription(String description)
The description of the replication job.
description
- The description of the replication job.public void setNumberOfRecentAmisToKeep(Integer numberOfRecentAmisToKeep)
Number of recent AMIs to keep in the customer's account for a replication job. By default the value is set to zero, meaning that all AMIs are kept.
numberOfRecentAmisToKeep
- Number of recent AMIs to keep in the customer's account for a replication job. By default the value is set
to zero, meaning that all AMIs are kept.public Integer getNumberOfRecentAmisToKeep()
Number of recent AMIs to keep in the customer's account for a replication job. By default the value is set to zero, meaning that all AMIs are kept.
public ReplicationJob withNumberOfRecentAmisToKeep(Integer numberOfRecentAmisToKeep)
Number of recent AMIs to keep in the customer's account for a replication job. By default the value is set to zero, meaning that all AMIs are kept.
numberOfRecentAmisToKeep
- Number of recent AMIs to keep in the customer's account for a replication job. By default the value is set
to zero, meaning that all AMIs are kept.public void setEncrypted(Boolean encrypted)
Whether the replication job should produce encrypted AMIs or not. See also KmsKeyId
below.
encrypted
- Whether the replication job should produce encrypted AMIs or not. See also KmsKeyId
below.public Boolean getEncrypted()
Whether the replication job should produce encrypted AMIs or not. See also KmsKeyId
below.
KmsKeyId
below.public ReplicationJob withEncrypted(Boolean encrypted)
Whether the replication job should produce encrypted AMIs or not. See also KmsKeyId
below.
encrypted
- Whether the replication job should produce encrypted AMIs or not. See also KmsKeyId
below.public Boolean isEncrypted()
Whether the replication job should produce encrypted AMIs or not. See also KmsKeyId
below.
KmsKeyId
below.public void setKmsKeyId(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.
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.
public String getKmsKeyId()
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 ReplicationJob withKmsKeyId(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.
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.
public List<ReplicationRun> getReplicationRunList()
Information about the replication runs.
public void setReplicationRunList(Collection<ReplicationRun> replicationRunList)
Information about the replication runs.
replicationRunList
- Information about the replication runs.public ReplicationJob withReplicationRunList(ReplicationRun... replicationRunList)
Information about the replication runs.
NOTE: This method appends the values to the existing list (if any). Use
setReplicationRunList(java.util.Collection)
or withReplicationRunList(java.util.Collection)
if
you want to override the existing values.
replicationRunList
- Information about the replication runs.public ReplicationJob withReplicationRunList(Collection<ReplicationRun> replicationRunList)
Information about the replication runs.
replicationRunList
- Information about the replication runs.public String toString()
toString
in class Object
Object.toString()
public ReplicationJob clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.