Class TemporaryCredential
- All Implemented Interfaces:
Serializable
,Cloneable
Contains the data needed by RDP clients such as the Microsoft Remote Desktop Connection to log in to the instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The instance's AWS OpsWorks ID.The password.The user name.The length of time (in minutes) that the grant is valid.int
hashCode()
void
setInstanceId
(String instanceId) The instance's AWS OpsWorks 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.toString()
Returns a string representation of this object; useful for testing and debugging.withInstanceId
(String instanceId) The instance's AWS OpsWorks ID.withPassword
(String password) The password.withUsername
(String username) The user name.withValidForInMinutes
(Integer validForInMinutes) The length of time (in minutes) that the grant is valid.
-
Constructor Details
-
TemporaryCredential
public TemporaryCredential()
-
-
Method Details
-
setUsername
The user name.
- Parameters:
username
- The user name.
-
getUsername
The user name.
- Returns:
- The user name.
-
withUsername
The user name.
- Parameters:
username
- The user name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPassword
The password.
- Parameters:
password
- The password.
-
getPassword
The password.
- Returns:
- The password.
-
withPassword
The password.
- Parameters:
password
- The password.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValidForInMinutes
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withValidForInMinutes
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
The instance's AWS OpsWorks ID.
- Parameters:
instanceId
- The instance's AWS OpsWorks ID.
-
getInstanceId
The instance's AWS OpsWorks ID.
- Returns:
- The instance's AWS OpsWorks ID.
-
withInstanceId
The instance's AWS OpsWorks ID.
- Parameters:
instanceId
- The instance's AWS OpsWorks ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-