Class AddSshPublicKeyRequest

java.lang.Object
com.cloudera.cdp.iam.model.AddSshPublicKeyRequest

@Generated(value="com.cloudera.cdp.client.codegen.CdpSDKJavaCodegen", date="2024-09-27T08:40:27.842-07:00") public class AddSshPublicKeyRequest extends Object
Request object for add user ssh public key.
  • Constructor Details

    • AddSshPublicKeyRequest

      public AddSshPublicKeyRequest()
  • Method Details

    • getPublicKey

      public String getPublicKey()
      Getter for publicKey. The RSA or ED25519 public ssh key to add. DSA and ECDSA public keys are not supported. The public key should be in RFC4253 format. (e.g. ssh-rsa AAAAB3NzaC1yc2EAAA.. user@host) as produced, for example, by ssh-keygen.
    • setPublicKey

      public void setPublicKey(String publicKey)
      Setter for publicKey. The RSA or ED25519 public ssh key to add. DSA and ECDSA public keys are not supported. The public key should be in RFC4253 format. (e.g. ssh-rsa AAAAB3NzaC1yc2EAAA.. user@host) as produced, for example, by ssh-keygen.
    • getActorCrn

      public String getActorCrn()
      Getter for actorCrn. The CRN of the user or machine user for whom the SSH public key will be added. If it is not included, it defaults to the user making the request.
    • setActorCrn

      public void setActorCrn(String actorCrn)
      Setter for actorCrn. The CRN of the user or machine user for whom the SSH public key will be added. If it is not included, it defaults to the user making the request.
    • getDescription

      public String getDescription()
      Getter for description. An optional description for the public key.
    • setDescription

      public void setDescription(String description)
      Setter for description. An optional description for the public key.
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object