Class TemporaryCredential
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.TemporaryCredential
-
- All Implemented Interfaces:
Serializable,Cloneable
public class TemporaryCredential extends Object implements Serializable, Cloneable
Contains the data needed by RDP clients such as the Microsoft Remote Desktop Connection to log in to the instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemporaryCredential()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemporaryCredentialclone()booleanequals(Object obj)StringgetInstanceId()The instance's AWS OpsWorks ID.StringgetPassword()The password.StringgetUsername()The user name.IntegergetValidForInMinutes()The length of time (in minutes) that the grant is valid.inthashCode()voidsetInstanceId(String instanceId)The instance's AWS OpsWorks ID.voidsetPassword(String password)The password.voidsetUsername(String username)The user name.voidsetValidForInMinutes(Integer validForInMinutes)The length of time (in minutes) that the grant is valid.StringtoString()Returns a string representation of this object; useful for testing and debugging.TemporaryCredentialwithInstanceId(String instanceId)The instance's AWS OpsWorks ID.TemporaryCredentialwithPassword(String password)The password.TemporaryCredentialwithUsername(String username)The user name.TemporaryCredentialwithValidForInMinutes(Integer validForInMinutes)The length of time (in minutes) that the grant is valid.
-
-
-
Method Detail
-
setUsername
public void setUsername(String username)
The user name.
- Parameters:
username- The user name.
-
getUsername
public String getUsername()
The user name.
- Returns:
- The user name.
-
withUsername
public TemporaryCredential withUsername(String username)
The user name.
- Parameters:
username- The user name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPassword
public void setPassword(String password)
The password.
- Parameters:
password- The password.
-
getPassword
public String getPassword()
The password.
- Returns:
- The password.
-
withPassword
public TemporaryCredential withPassword(String password)
The password.
- Parameters:
password- The password.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValidForInMinutes
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.
- 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
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.
- 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
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.
- 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
public void setInstanceId(String instanceId)
The instance's AWS OpsWorks ID.
- Parameters:
instanceId- The instance's AWS OpsWorks ID.
-
getInstanceId
public String getInstanceId()
The instance's AWS OpsWorks ID.
- Returns:
- The instance's AWS OpsWorks ID.
-
withInstanceId
public TemporaryCredential withInstanceId(String instanceId)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TemporaryCredential clone()
-
-