@Generated(value="software.amazon.awssdk:codegen") public final class InstanceCredentials extends Object implements StructuredPojo, ToCopyableBuilder<InstanceCredentials.Builder,InstanceCredentials>
Set of credentials required to remotely access a fleet instance. Access credentials are requested by calling GetInstanceAccess and returned in an InstanceAccess object.
Modifier and Type | Class and Description |
---|---|
static interface |
InstanceCredentials.Builder |
Modifier and Type | Method and Description |
---|---|
static InstanceCredentials.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
secret()
Secret string.
|
static Class<? extends InstanceCredentials.Builder> |
serializableBuilderClass() |
InstanceCredentials.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
userName()
User login string.
|
copy
public String userName()
User login string.
public 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.
.pem
file) for use with SSH.public InstanceCredentials.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<InstanceCredentials.Builder,InstanceCredentials>
public static InstanceCredentials.Builder builder()
public static Class<? extends InstanceCredentials.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.