public class GrantAccessRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
instanceId
The instance's AWS OpsWorks ID.
|
private java.lang.Integer |
validForInMinutes
The length of time (in minutes) that the grant is valid.
|
NOOP
Constructor and Description |
---|
GrantAccessRequest() |
Modifier and Type | Method and Description |
---|---|
GrantAccessRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getInstanceId()
The instance's AWS OpsWorks ID.
|
java.lang.Integer |
getValidForInMinutes()
The length of time (in minutes) that the grant is valid.
|
int |
hashCode() |
void |
setInstanceId(java.lang.String instanceId)
The instance's AWS OpsWorks ID.
|
void |
setValidForInMinutes(java.lang.Integer validForInMinutes)
The length of time (in minutes) that the grant is valid.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GrantAccessRequest |
withInstanceId(java.lang.String instanceId)
The instance's AWS OpsWorks ID.
|
GrantAccessRequest |
withValidForInMinutes(java.lang.Integer validForInMinutes)
The length of time (in minutes) that the grant is valid.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String instanceId
The instance's AWS OpsWorks ID.
private java.lang.Integer validForInMinutes
The length of time (in minutes) that the grant is valid. When the grant expires at the end of this period, the user will no longer be able to use the credentials to log in. If the user is logged in at the time, he or she automatically will be logged out.
public void setInstanceId(java.lang.String instanceId)
The instance's AWS OpsWorks ID.
instanceId
- The instance's AWS OpsWorks ID.public java.lang.String getInstanceId()
The instance's AWS OpsWorks ID.
public GrantAccessRequest withInstanceId(java.lang.String instanceId)
The instance's AWS OpsWorks ID.
instanceId
- The instance's AWS OpsWorks ID.public void setValidForInMinutes(java.lang.Integer validForInMinutes)
The length of time (in minutes) that the grant is valid. When the grant expires at the end of this period, the user will no longer be able to use the credentials to log in. If the user is logged in at the time, he or she automatically will be logged out.
validForInMinutes
- The length of time (in minutes) that the grant is valid. When the
grant expires at the end of this period, the user will no longer
be able to use the credentials to log in. If the user is logged in
at the time, he or she automatically will be logged out.public java.lang.Integer getValidForInMinutes()
The length of time (in minutes) that the grant is valid. When the grant expires at the end of this period, the user will no longer be able to use the credentials to log in. If the user is logged in at the time, he or she automatically will be logged out.
public GrantAccessRequest withValidForInMinutes(java.lang.Integer validForInMinutes)
The length of time (in minutes) that the grant is valid. When the grant expires at the end of this period, the user will no longer be able to use the credentials to log in. If the user is logged in at the time, he or she automatically will be logged out.
validForInMinutes
- The length of time (in minutes) that the grant is valid. When the
grant expires at the end of this period, the user will no longer
be able to use the credentials to log in. If the user is logged in
at the time, he or she automatically will be logged out.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public GrantAccessRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()