com.amazonaws.services.ec2.model
Class KeyPair

java.lang.Object
  extended by com.amazonaws.services.ec2.model.KeyPair
All Implemented Interfaces:
java.io.Serializable

public class KeyPair
extends java.lang.Object
implements java.io.Serializable

Describes a key pair.

See Also:
Serialized Form

Constructor Summary
KeyPair()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getKeyFingerprint()
          The SHA-1 digest of the DER encoded private key.
 java.lang.String getKeyMaterial()
          An unencrypted PEM encoded RSA private key.
 java.lang.String getKeyName()
          The name of the key pair.
 int hashCode()
           
 void setKeyFingerprint(java.lang.String keyFingerprint)
          The SHA-1 digest of the DER encoded private key.
 void setKeyMaterial(java.lang.String keyMaterial)
          An unencrypted PEM encoded RSA private key.
 void setKeyName(java.lang.String keyName)
          The name of the key pair.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 KeyPair withKeyFingerprint(java.lang.String keyFingerprint)
          The SHA-1 digest of the DER encoded private key.
 KeyPair withKeyMaterial(java.lang.String keyMaterial)
          An unencrypted PEM encoded RSA private key.
 KeyPair withKeyName(java.lang.String keyName)
          The name of the key pair.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyPair

public KeyPair()
Method Detail

getKeyName

public java.lang.String getKeyName()
The name of the key pair.

Returns:
The name of the key pair.

setKeyName

public void setKeyName(java.lang.String keyName)
The name of the key pair.

Parameters:
keyName - The name of the key pair.

withKeyName

public KeyPair withKeyName(java.lang.String keyName)
The name of the key pair.

Returns a reference to this object so that method calls can be chained together.

Parameters:
keyName - The name of the key pair.
Returns:
A reference to this updated object so that method calls can be chained together.

getKeyFingerprint

public java.lang.String getKeyFingerprint()
The SHA-1 digest of the DER encoded private key.

Returns:
The SHA-1 digest of the DER encoded private key.

setKeyFingerprint

public void setKeyFingerprint(java.lang.String keyFingerprint)
The SHA-1 digest of the DER encoded private key.

Parameters:
keyFingerprint - The SHA-1 digest of the DER encoded private key.

withKeyFingerprint

public KeyPair withKeyFingerprint(java.lang.String keyFingerprint)
The SHA-1 digest of the DER encoded private key.

Returns a reference to this object so that method calls can be chained together.

Parameters:
keyFingerprint - The SHA-1 digest of the DER encoded private key.
Returns:
A reference to this updated object so that method calls can be chained together.

getKeyMaterial

public java.lang.String getKeyMaterial()
An unencrypted PEM encoded RSA private key.

Returns:
An unencrypted PEM encoded RSA private key.

setKeyMaterial

public void setKeyMaterial(java.lang.String keyMaterial)
An unencrypted PEM encoded RSA private key.

Parameters:
keyMaterial - An unencrypted PEM encoded RSA private key.

withKeyMaterial

public KeyPair withKeyMaterial(java.lang.String keyMaterial)
An unencrypted PEM encoded RSA private key.

Returns a reference to this object so that method calls can be chained together.

Parameters:
keyMaterial - An unencrypted PEM encoded RSA private key.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.