Class AddSshPublicKeyRequest


  • @Generated(value="com.cloudera.cdp.client.codegen.CdpSDKJavaCodegen",
               date="2024-03-13T13:08:48.192-07:00")
    public class AddSshPublicKeyRequest
    extends Object
    Request object for add user ssh public key.
    • Constructor Detail

      • AddSshPublicKeyRequest

        public AddSshPublicKeyRequest()
    • Method Detail

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object