Package com.amazonaws.services.iot.model
Class KeyPair
- java.lang.Object
-
- com.amazonaws.services.iot.model.KeyPair
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class KeyPair extends Object implements Serializable, Cloneable
Describes a key pair.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeyPair()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyPair
clone()
boolean
equals(Object obj)
String
getPrivateKey()
The private key.String
getPublicKey()
The public key.int
hashCode()
void
setPrivateKey(String privateKey)
The private key.void
setPublicKey(String publicKey)
The public key.String
toString()
Returns a string representation of this object; useful for testing and debugging.KeyPair
withPrivateKey(String privateKey)
The private key.KeyPair
withPublicKey(String publicKey)
The public key.
-
-
-
Method Detail
-
setPublicKey
public void setPublicKey(String publicKey)
The public key.
- Parameters:
publicKey
- The public key.
-
getPublicKey
public String getPublicKey()
The public key.
- Returns:
- The public key.
-
withPublicKey
public KeyPair withPublicKey(String publicKey)
The public key.
- Parameters:
publicKey
- The public key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateKey
public void setPrivateKey(String privateKey)
The private key.
- Parameters:
privateKey
- The private key.
-
getPrivateKey
public String getPrivateKey()
The private key.
- Returns:
- The private key.
-
withPrivateKey
public KeyPair withPrivateKey(String privateKey)
The private key.
- Parameters:
privateKey
- The private key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-