|
|||||||
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 created with a third-party tool. This operation differs from CreateKeyPair as the private key is never transferred between the caller and AWS servers.
RSA key pairs are easily created on Microsoft Windows and Linux OS systems using the ssh-keygen
command line tool provided with the
standard OpenSSH installation. Standard library support for RSA key pair creation is also available for Java, Ruby, Python, and many other
programming languages.
The following formats are supported:
AmazonEC2.importKeyPair(ImportKeyPairRequest)
Constructor Summary | |
---|---|
ImportKeyPairRequest()
Default constructor for a new ImportKeyPairRequest object. |
|
ImportKeyPairRequest(String keyName,
String publicKeyMaterial)
Constructs a new ImportKeyPairRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getKeyName()
The unique name for the key pair. |
String |
getPublicKeyMaterial()
The public key portion of the key pair being imported. |
int |
hashCode()
|
void |
setKeyName(String keyName)
The unique name for the key pair. |
void |
setPublicKeyMaterial(String publicKeyMaterial)
The public key portion of the key pair being imported. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
ImportKeyPairRequest |
withKeyName(String keyName)
The unique name for the key pair. |
ImportKeyPairRequest |
withPublicKeyMaterial(String publicKeyMaterial)
The public key portion of the key pair being imported. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImportKeyPairRequest()
public ImportKeyPairRequest(String keyName, String publicKeyMaterial)
keyName
- The unique name for the key pair.publicKeyMaterial
- The public key portion of the key pair being
imported.Method Detail |
---|
public String getKeyName()
public void setKeyName(String keyName)
keyName
- The unique name for the key pair.public ImportKeyPairRequest withKeyName(String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName
- The unique name for the key pair.
public String getPublicKeyMaterial()
public void setPublicKeyMaterial(String publicKeyMaterial)
publicKeyMaterial
- The public key portion of the key pair being imported.public ImportKeyPairRequest withPublicKeyMaterial(String publicKeyMaterial)
Returns a reference to this object so that method calls can be chained together.
publicKeyMaterial
- The public key portion of the key pair being imported.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |