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:
  • Constructor Details

    • KeyPair

      public KeyPair()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public KeyPair clone()
      Overrides:
      clone in class Object