public class GrantAccessRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
GrantAccess operation
.
NOTE:This action can be used only with Windows stacks.
Grants RDP access to a Windows instance for a specified time period.
NOOP
Constructor and Description |
---|
GrantAccessRequest() |
Modifier and Type | Method and Description |
---|---|
GrantAccessRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getInstanceId()
The instance's AWS OpsWorks ID.
|
Integer |
getValidForInMinutes()
The length of time (in minutes) that the grant is valid.
|
int |
hashCode() |
void |
setInstanceId(String instanceId)
The instance's AWS OpsWorks ID.
|
void |
setValidForInMinutes(Integer validForInMinutes)
The length of time (in minutes) that the grant is valid.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GrantAccessRequest |
withInstanceId(String instanceId)
The instance's AWS OpsWorks ID.
|
GrantAccessRequest |
withValidForInMinutes(Integer validForInMinutes)
The length of time (in minutes) that the grant is valid.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The instance's AWS OpsWorks ID.public GrantAccessRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The instance's AWS OpsWorks ID.public Integer getValidForInMinutes()
Constraints:
Range: 60 - 1440
public void setValidForInMinutes(Integer validForInMinutes)
Constraints:
Range: 60 - 1440
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 GrantAccessRequest withValidForInMinutes(Integer validForInMinutes)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 60 - 1440
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 String toString()
toString
in class Object
Object.toString()
public GrantAccessRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.