@Generated(value="software.amazon.awssdk:codegen") public final class InstanceAccessDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceAccessDetails.Builder,InstanceAccessDetails>
The parameters for gaining temporary access to one of your Amazon Lightsail instances.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InstanceAccessDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
static InstanceAccessDetails.Builder |
builder() |
String |
certKey()
For SSH access, the public key to use when accessing your instance For OpenSSH clients (e.g., command line SSH),
you should save this value to
tempkey-cert.pub. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Instant |
expiresAt()
For SSH access, the date on which the temporary keys expire.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasHostKeys()
Returns true if the HostKeys property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
List<HostKeyAttributes> |
hostKeys()
Describes the public SSH host keys or the RDP certificate.
|
String |
instanceName()
The name of this Amazon Lightsail instance.
|
String |
ipAddress()
The public IP address of the Amazon Lightsail instance.
|
String |
password()
For RDP access, the password for your Amazon Lightsail instance.
|
PasswordData |
passwordData()
For a Windows Server-based instance, an object with the data you can use to retrieve your password.
|
String |
privateKey()
For SSH access, the temporary private key.
|
InstanceAccessProtocol |
protocol()
The protocol for these Amazon Lightsail instance access details.
|
String |
protocolAsString()
The protocol for these Amazon Lightsail instance access details.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InstanceAccessDetails.Builder> |
serializableBuilderClass() |
InstanceAccessDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
username()
The user name to use when logging in to the Amazon Lightsail instance.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String certKey()
For SSH access, the public key to use when accessing your instance For OpenSSH clients (e.g., command line SSH),
you should save this value to tempkey-cert.pub.
tempkey-cert.pub.public final Instant expiresAt()
For SSH access, the date on which the temporary keys expire.
public final String ipAddress()
The public IP address of the Amazon Lightsail instance.
public final String password()
For RDP access, the password for your Amazon Lightsail instance. Password will be an empty string if the password for your new instance is not ready yet. When you create an instance, it can take up to 15 minutes for the instance to be ready.
If you create an instance using any key pair other than the default (LightsailDefaultKeyPair),
password will always be an empty string.
If you change the Administrator password on the instance, Lightsail will continue to return the original password value. When accessing the instance using RDP, you need to manually enter the Administrator password after changing it from the default.
If you create an instance using any key pair other than the default (LightsailDefaultKeyPair
), password will always be an empty string.
If you change the Administrator password on the instance, Lightsail will continue to return the original password value. When accessing the instance using RDP, you need to manually enter the Administrator password after changing it from the default.
public final PasswordData passwordData()
For a Windows Server-based instance, an object with the data you can use to retrieve your password. This is only
needed if password is empty and the instance is not new (and therefore the password is not ready
yet). When you create an instance, it can take up to 15 minutes for the instance to be ready.
password is empty and the instance is not new (and therefore the password
is not ready yet). When you create an instance, it can take up to 15 minutes for the instance to be
ready.public final String privateKey()
For SSH access, the temporary private key. For OpenSSH clients (e.g., command line SSH), you should save this
value to tempkey).
tempkey).public final InstanceAccessProtocol protocol()
The protocol for these Amazon Lightsail instance access details.
If the service returns an enum value that is not available in the current SDK version, protocol will
return InstanceAccessProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from protocolAsString().
InstanceAccessProtocolpublic final String protocolAsString()
The protocol for these Amazon Lightsail instance access details.
If the service returns an enum value that is not available in the current SDK version, protocol will
return InstanceAccessProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from protocolAsString().
InstanceAccessProtocolpublic final String instanceName()
The name of this Amazon Lightsail instance.
public final String username()
The user name to use when logging in to the Amazon Lightsail instance.
public final boolean hasHostKeys()
public final List<HostKeyAttributes> hostKeys()
Describes the public SSH host keys or the RDP certificate.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasHostKeys() to see if a value was sent in this field.
public InstanceAccessDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InstanceAccessDetails.Builder,InstanceAccessDetails>public static InstanceAccessDetails.Builder builder()
public static Class<? extends InstanceAccessDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.