|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ImportKeyPairRequest
public class ImportKeyPairRequest
Container for the parameters to the ImportKeyPair operation
.
Imports the public key from an RSA key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which AWS creates the key pair and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair, you create the key pair and give AWS just the public key. The private key is never transferred between you and AWS.
For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide .
AmazonEC2.importKeyPair(ImportKeyPairRequest)
,
Serialized FormConstructor Summary | |
---|---|
ImportKeyPairRequest()
Default constructor for a new ImportKeyPairRequest object. |
|
ImportKeyPairRequest(java.lang.String keyName,
java.lang.String publicKeyMaterial)
Constructs a new ImportKeyPairRequest object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Request<ImportKeyPairRequest> |
getDryRunRequest()
This method is intended for internal use only. |
java.lang.String |
getKeyName()
A unique name for the key pair. |
java.lang.String |
getPublicKeyMaterial()
The public key. |
int |
hashCode()
|
void |
setKeyName(java.lang.String keyName)
A unique name for the key pair. |
void |
setPublicKeyMaterial(java.lang.String publicKeyMaterial)
The public key. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
ImportKeyPairRequest |
withKeyName(java.lang.String keyName)
A unique name for the key pair. |
ImportKeyPairRequest |
withPublicKeyMaterial(java.lang.String publicKeyMaterial)
The public key. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImportKeyPairRequest()
public ImportKeyPairRequest(java.lang.String keyName, java.lang.String publicKeyMaterial)
keyName
- A unique name for the key pair.publicKeyMaterial
- The public key. You must base64 encode the
public key material before sending it to AWS.Method Detail |
---|
public java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
keyName
- A unique name for the key pair.public ImportKeyPairRequest withKeyName(java.lang.String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName
- A unique name for the key pair.
public java.lang.String getPublicKeyMaterial()
public void setPublicKeyMaterial(java.lang.String publicKeyMaterial)
publicKeyMaterial
- The public key. You must base64 encode the public key material before
sending it to AWS.public ImportKeyPairRequest withPublicKeyMaterial(java.lang.String publicKeyMaterial)
Returns a reference to this object so that method calls can be chained together.
publicKeyMaterial
- The public key. You must base64 encode the public key material before
sending it to AWS.
public Request<ImportKeyPairRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ImportKeyPairRequest>
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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |