@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceCredentials extends Object implements Serializable, Cloneable
Set of credentials required to remotely access a fleet instance. Access credentials are requested by calling GetInstanceAccess and returned in an InstanceAccess object.
Constructor and Description |
---|
InstanceCredentials() |
Modifier and Type | Method and Description |
---|---|
InstanceCredentials |
clone() |
boolean |
equals(Object obj) |
String |
getSecret()
Secret string.
|
String |
getUserName()
User login string.
|
int |
hashCode() |
void |
setSecret(String secret)
Secret string.
|
void |
setUserName(String userName)
User login string.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InstanceCredentials |
withSecret(String secret)
Secret string.
|
InstanceCredentials |
withUserName(String userName)
User login string.
|
public void setUserName(String userName)
User login string.
userName
- User login string.public String getUserName()
User login string.
public InstanceCredentials withUserName(String userName)
User login string.
userName
- User login string.public void setSecret(String secret)
Secret string. For Windows instances, the secret is a password. For Linux instances, it is a private key.
secret
- Secret string. For Windows instances, the secret is a password. For Linux instances, it is a private key.public String getSecret()
Secret string. For Windows instances, the secret is a password. For Linux instances, it is a private key.
public InstanceCredentials withSecret(String secret)
Secret string. For Windows instances, the secret is a password. For Linux instances, it is a private key.
secret
- Secret string. For Windows instances, the secret is a password. For Linux instances, it is a private key.public String toString()
toString
in class Object
Object.toString()
public InstanceCredentials clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.