@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceCredentials extends Object implements Serializable, Cloneable, StructuredPojo
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 use with Windows Remote Desktop. For Linux
instances, it is a private key (which must be saved as a .pem
file) 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 is a private key (which must be saved as a .pem
file) 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 is a private key (which must be saved as a .pem
file) for use with SSH.
.pem
file) 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 is a private key (which must be saved as a .pem
file) 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 is a private key (which must be saved as a .pem
file) for use with SSH.public String toString()
toString
in class Object
Object.toString()
public InstanceCredentials 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.