public class UpdateSSHPublicKeyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
UpdateSSHPublicKey operation
.
Sets the status of the specified SSH public key to active or inactive. SSH public keys that are inactive cannot be used for authentication. This action can be used to disable a user's SSH public key as part of a key rotation work flow.
The SSH public key affected 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 |
---|
UpdateSSHPublicKeyRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateSSHPublicKeyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getSSHPublicKeyId()
The unique identifier for the SSH public key.
|
String |
getStatus()
The status to assign to the SSH public key.
|
String |
getUserName()
The name of the IAM user associated with the SSH public key.
|
int |
hashCode() |
void |
setSSHPublicKeyId(String sSHPublicKeyId)
The unique identifier for the SSH public key.
|
void |
setStatus(StatusType status)
The status to assign to the SSH public key.
|
void |
setStatus(String status)
The status to assign to 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.
|
UpdateSSHPublicKeyRequest |
withSSHPublicKeyId(String sSHPublicKeyId)
The unique identifier for the SSH public key.
|
UpdateSSHPublicKeyRequest |
withStatus(StatusType status)
The status to assign to the SSH public key.
|
UpdateSSHPublicKeyRequest |
withStatus(String status)
The status to assign to the SSH public key.
|
UpdateSSHPublicKeyRequest |
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 UpdateSSHPublicKeyRequest 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 UpdateSSHPublicKeyRequest 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 getStatus()
Active
means
the key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.
Constraints:
Allowed Values: Active, Inactive
Active
means
the key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.StatusType
public void setStatus(String status)
Active
means
the key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.
Constraints:
Allowed Values: Active, Inactive
status
- The status to assign to the SSH public key. Active
means
the key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.StatusType
public UpdateSSHPublicKeyRequest withStatus(String status)
Active
means
the key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Active, Inactive
status
- The status to assign to the SSH public key. Active
means
the key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.StatusType
public void setStatus(StatusType status)
Active
means
the key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.
Constraints:
Allowed Values: Active, Inactive
status
- The status to assign to the SSH public key. Active
means
the key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.StatusType
public UpdateSSHPublicKeyRequest withStatus(StatusType status)
Active
means
the key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Active, Inactive
status
- The status to assign to the SSH public key. Active
means
the key can be used for authentication with an AWS CodeCommit
repository. Inactive
means the key cannot be used.StatusType
public String toString()
toString
in class Object
Object.toString()
public UpdateSSHPublicKeyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.