@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TemporaryCredential extends Object implements Serializable, Cloneable, StructuredPojo
Contains the data needed by RDP clients such as the Microsoft Remote Desktop Connection to log in to the instance.
Constructor and Description |
---|
TemporaryCredential() |
Modifier and Type | Method and Description |
---|---|
TemporaryCredential |
clone() |
boolean |
equals(Object obj) |
String |
getInstanceId()
The instance's AWS OpsWorks Stacks ID.
|
String |
getPassword()
The password.
|
String |
getUsername()
The user name.
|
Integer |
getValidForInMinutes()
The length of time (in minutes) that the grant is valid.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInstanceId(String instanceId)
The instance's AWS OpsWorks Stacks ID.
|
void |
setPassword(String password)
The password.
|
void |
setUsername(String username)
The user name.
|
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.
|
TemporaryCredential |
withInstanceId(String instanceId)
The instance's AWS OpsWorks Stacks ID.
|
TemporaryCredential |
withPassword(String password)
The password.
|
TemporaryCredential |
withUsername(String username)
The user name.
|
TemporaryCredential |
withValidForInMinutes(Integer validForInMinutes)
The length of time (in minutes) that the grant is valid.
|
public void setUsername(String username)
The user name.
username
- The user name.public String getUsername()
The user name.
public TemporaryCredential withUsername(String username)
The user name.
username
- The user name.public void setPassword(String password)
The password.
password
- The password.public String getPassword()
The password.
public TemporaryCredential withPassword(String password)
The password.
password
- The password.public void setValidForInMinutes(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 they are logged in at the time, they will be automatically 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 they are logged in at the
time, they will be automatically logged out.public 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 they are logged in at the time, they will be automatically logged out.
public TemporaryCredential withValidForInMinutes(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 they are logged in at the time, they will be automatically 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 they are logged in at the
time, they will be automatically logged out.public void setInstanceId(String instanceId)
The instance's AWS OpsWorks Stacks ID.
instanceId
- The instance's AWS OpsWorks Stacks ID.public String getInstanceId()
The instance's AWS OpsWorks Stacks ID.
public TemporaryCredential withInstanceId(String instanceId)
The instance's AWS OpsWorks Stacks ID.
instanceId
- The instance's AWS OpsWorks Stacks ID.public String toString()
toString
in class Object
Object.toString()
public TemporaryCredential clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.