@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceCredentials extends Object implements Serializable, Cloneable, StructuredPojo
A set of credentials that allow remote access to an instance in an EC2 managed fleet. These credentials are returned in response to a call to GetInstanceAccess, which requests access for instances that are running game servers with the Amazon GameLift server SDK version 4.x or earlier.
| Constructor and Description |
|---|
InstanceCredentials() |
| Modifier and Type | Method and Description |
|---|---|
InstanceCredentials |
clone() |
boolean |
equals(Object obj) |
String |
getSecret()
Secret string.
|
String |
getUserName()
A user name for logging in.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setSecret(String secret)
Secret string.
|
void |
setUserName(String userName)
A user name for logging in.
|
String |
toString()
Returns a string representation of this object.
|
InstanceCredentials |
withSecret(String secret)
Secret string.
|
InstanceCredentials |
withUserName(String userName)
A user name for logging in.
|
public void setUserName(String userName)
A user name for logging in.
userName - A user name for logging in.public String getUserName()
A user name for logging in.
public InstanceCredentials withUserName(String userName)
A user name for logging in.
userName - A user name for logging in.public void setSecret(String secret)
Secret string. For Windows instances, the secret is a password for use with Windows Remote Desktop. For Linux instances, it's a private key for use with SSH.
secret - Secret string. For Windows instances, the secret is a password for use with Windows Remote Desktop. For
Linux instances, it's a private key for use with SSH.public String getSecret()
Secret string. For Windows instances, the secret is a password for use with Windows Remote Desktop. For Linux instances, it's a private key for use with SSH.
public InstanceCredentials withSecret(String secret)
Secret string. For Windows instances, the secret is a password for use with Windows Remote Desktop. For Linux instances, it's a private key for use with SSH.
secret - Secret string. For Windows instances, the secret is a password for use with Windows Remote Desktop. For
Linux instances, it's a private key for use with SSH.public String toString()
toString in class ObjectObject.toString()public InstanceCredentials clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.