public class UploadSSHPublicKeyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
UploadSSHPublicKey operation.
Uploads an SSH public key and associates it with the specified IAM user.
The SSH public key uploaded by this action can be 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 |
|---|
UploadSSHPublicKeyRequest() |
| Modifier and Type | Method and Description |
|---|---|
UploadSSHPublicKeyRequest |
clone() |
boolean |
equals(Object obj) |
String |
getSSHPublicKeyBody()
The SSH public key.
|
String |
getUserName()
The name of the IAM user to associate the SSH public key with.
|
int |
hashCode() |
void |
setSSHPublicKeyBody(String sSHPublicKeyBody)
The SSH public key.
|
void |
setUserName(String userName)
The name of the IAM user to associate the SSH public key with.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UploadSSHPublicKeyRequest |
withSSHPublicKeyBody(String sSHPublicKeyBody)
The SSH public key.
|
UploadSSHPublicKeyRequest |
withUserName(String userName)
The name of the IAM user to associate the SSH public key with.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic 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 to associate the SSH public key with.public UploadSSHPublicKeyRequest 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 to associate the SSH public key with.public String getSSHPublicKeyBody()
Constraints:
Length: 1 - 16384
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
public void setSSHPublicKeyBody(String sSHPublicKeyBody)
Constraints:
Length: 1 - 16384
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
sSHPublicKeyBody - The SSH public key. The public key must be encoded in ssh-rsa format
or PEM format.public UploadSSHPublicKeyRequest withSSHPublicKeyBody(String sSHPublicKeyBody)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 16384
Pattern: [\u0009\u000A\u000D\u0020-\u00FF]+
sSHPublicKeyBody - The SSH public key. The public key must be encoded in ssh-rsa format
or PEM format.public String toString()
toString in class ObjectObject.toString()public UploadSSHPublicKeyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.