@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyPair extends Object implements Serializable, Cloneable, StructuredPojo
Describes a key pair.
Constructor and Description |
---|
KeyPair() |
Modifier and Type | Method and Description |
---|---|
KeyPair |
clone() |
boolean |
equals(Object obj) |
String |
getPrivateKey()
The private key.
|
String |
getPublicKey()
The public key.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPrivateKey(String privateKey)
The private key.
|
void |
setPublicKey(String publicKey)
The public key.
|
String |
toString()
Returns a string representation of this object.
|
KeyPair |
withPrivateKey(String privateKey)
The private key.
|
KeyPair |
withPublicKey(String publicKey)
The public key.
|
public void setPublicKey(String publicKey)
The public key.
publicKey
- The public key.public String getPublicKey()
The public key.
public KeyPair withPublicKey(String publicKey)
The public key.
publicKey
- The public key.public void setPrivateKey(String privateKey)
The private key.
privateKey
- The private key.public String getPrivateKey()
The private key.
public KeyPair withPrivateKey(String privateKey)
The private key.
privateKey
- The private key.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.