public class TransferCertificateRequest extends AmazonWebServiceRequest implements java.io.Serializable
Transfers the specified certificate to the specified AWS account.
You can cancel the transfer until it is acknowledged by the recipient.
No notification is sent to the transfer destination's account. It is up to the caller to notify the transfer target.
The certificate being transferred must not be in the ACTIVE state. You can use the UpdateCertificate API to deactivate it.
The certificate must not have any policies attached to it. You can use the DetachPrincipalPolicy API to detach them.
Constructor and Description |
---|
TransferCertificateRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCertificateId()
The ID of the certificate.
|
java.lang.String |
getTargetAwsAccount()
The AWS account.
|
java.lang.String |
getTransferMessage()
The transfer message.
|
int |
hashCode() |
void |
setCertificateId(java.lang.String certificateId)
The ID of the certificate.
|
void |
setTargetAwsAccount(java.lang.String targetAwsAccount)
The AWS account.
|
void |
setTransferMessage(java.lang.String transferMessage)
The transfer message.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TransferCertificateRequest |
withCertificateId(java.lang.String certificateId)
The ID of the certificate.
|
TransferCertificateRequest |
withTargetAwsAccount(java.lang.String targetAwsAccount)
The AWS account.
|
TransferCertificateRequest |
withTransferMessage(java.lang.String transferMessage)
The transfer message.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getCertificateId()
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Constraints:
Length: 64 - 64
Pattern: (0x)?[a-fA-F0-9]+
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
public void setCertificateId(java.lang.String certificateId)
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Constraints:
Length: 64 - 64
Pattern: (0x)?[a-fA-F0-9]+
certificateId
- The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
public TransferCertificateRequest withCertificateId(java.lang.String certificateId)
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 64 - 64
Pattern: (0x)?[a-fA-F0-9]+
certificateId
- The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
public java.lang.String getTargetAwsAccount()
The AWS account.
Constraints:
Length: 12 - 12
Pattern: [0-9]+
The AWS account.
public void setTargetAwsAccount(java.lang.String targetAwsAccount)
The AWS account.
Constraints:
Length: 12 - 12
Pattern: [0-9]+
targetAwsAccount
- The AWS account.
public TransferCertificateRequest withTargetAwsAccount(java.lang.String targetAwsAccount)
The AWS account.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 12 - 12
Pattern: [0-9]+
targetAwsAccount
- The AWS account.
public java.lang.String getTransferMessage()
The transfer message.
Constraints:
Length: - 128
The transfer message.
public void setTransferMessage(java.lang.String transferMessage)
The transfer message.
Constraints:
Length: - 128
transferMessage
- The transfer message.
public TransferCertificateRequest withTransferMessage(java.lang.String transferMessage)
The transfer message.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 128
transferMessage
- The transfer message.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.