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 KeyPairclone()booleanequals(Object obj)StringgetPrivateKey()The private key.StringgetPublicKey()The public key.inthashCode()voidsetPrivateKey(String privateKey)The private key.voidsetPublicKey(String publicKey)The public key.StringtoString()Returns a string representation of this object; useful for testing and debugging.KeyPairwithPrivateKey(String privateKey)The private key.KeyPairwithPublicKey(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-