public class GetSSHPublicKeyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
GetSSHPublicKey operation
.
Retrieves the specified SSH public key, including metadata about the key.
The SSH public key retrieved by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide .
NOOP
Constructor and Description |
---|
GetSSHPublicKeyRequest() |
Modifier and Type | Method and Description |
---|---|
GetSSHPublicKeyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getEncoding()
Specifies the public key encoding format to use in the response.
|
String |
getSSHPublicKeyId()
The unique identifier for the SSH public key.
|
String |
getUserName()
The name of the IAM user associated with the SSH public key.
|
int |
hashCode() |
void |
setEncoding(EncodingType encoding)
Specifies the public key encoding format to use in the response.
|
void |
setEncoding(String encoding)
Specifies the public key encoding format to use in the response.
|
void |
setSSHPublicKeyId(String sSHPublicKeyId)
The unique identifier for the SSH public key.
|
void |
setUserName(String userName)
The name of the IAM user associated with the SSH public key.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetSSHPublicKeyRequest |
withEncoding(EncodingType encoding)
Specifies the public key encoding format to use in the response.
|
GetSSHPublicKeyRequest |
withEncoding(String encoding)
Specifies the public key encoding format to use in the response.
|
GetSSHPublicKeyRequest |
withSSHPublicKeyId(String sSHPublicKeyId)
The unique identifier for the SSH public key.
|
GetSSHPublicKeyRequest |
withUserName(String userName)
The name of the IAM user associated with the SSH public key.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getUserName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setUserName(String userName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName
- The name of the IAM user associated with the SSH public key.public GetSSHPublicKeyRequest withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
userName
- The name of the IAM user associated with the SSH public key.public String getSSHPublicKeyId()
Constraints:
Length: 20 - 128
Pattern: [\w]+
public void setSSHPublicKeyId(String sSHPublicKeyId)
Constraints:
Length: 20 - 128
Pattern: [\w]+
sSHPublicKeyId
- The unique identifier for the SSH public key.public GetSSHPublicKeyRequest withSSHPublicKeyId(String sSHPublicKeyId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 128
Pattern: [\w]+
sSHPublicKeyId
- The unique identifier for the SSH public key.public String getEncoding()
SSH
. To
retrieve the public key in PEM format, use PEM
.
Constraints:
Allowed Values: SSH, PEM
SSH
. To
retrieve the public key in PEM format, use PEM
.EncodingType
public void setEncoding(String encoding)
SSH
. To
retrieve the public key in PEM format, use PEM
.
Constraints:
Allowed Values: SSH, PEM
encoding
- Specifies the public key encoding format to use in the response. To
retrieve the public key in ssh-rsa format, use SSH
. To
retrieve the public key in PEM format, use PEM
.EncodingType
public GetSSHPublicKeyRequest withEncoding(String encoding)
SSH
. To
retrieve the public key in PEM format, use PEM
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SSH, PEM
encoding
- Specifies the public key encoding format to use in the response. To
retrieve the public key in ssh-rsa format, use SSH
. To
retrieve the public key in PEM format, use PEM
.EncodingType
public void setEncoding(EncodingType encoding)
SSH
. To
retrieve the public key in PEM format, use PEM
.
Constraints:
Allowed Values: SSH, PEM
encoding
- Specifies the public key encoding format to use in the response. To
retrieve the public key in ssh-rsa format, use SSH
. To
retrieve the public key in PEM format, use PEM
.EncodingType
public GetSSHPublicKeyRequest withEncoding(EncodingType encoding)
SSH
. To
retrieve the public key in PEM format, use PEM
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SSH, PEM
encoding
- Specifies the public key encoding format to use in the response. To
retrieve the public key in ssh-rsa format, use SSH
. To
retrieve the public key in PEM format, use PEM
.EncodingType
public String toString()
toString
in class Object
Object.toString()
public GetSSHPublicKeyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.