Interface InstanceAccessDetails.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<InstanceAccessDetails.Builder,,- InstanceAccessDetails> - SdkBuilder<InstanceAccessDetails.Builder,,- InstanceAccessDetails> - SdkPojo
- Enclosing class:
- InstanceAccessDetails
- 
Method SummaryModifier and TypeMethodDescriptionFor SSH access, the public key to use when accessing your instance For OpenSSH clients (command line SSH), you should save this value totempkey-cert.pub.For SSH access, the date on which the temporary keys expire.hostKeys(Collection<HostKeyAttributes> hostKeys) Describes the public SSH host keys or the RDP certificate.hostKeys(Consumer<HostKeyAttributes.Builder>... hostKeys) Describes the public SSH host keys or the RDP certificate.hostKeys(HostKeyAttributes... hostKeys) Describes the public SSH host keys or the RDP certificate.instanceName(String instanceName) The name of this Amazon Lightsail instance.The public IP address of the Amazon Lightsail instance.ipv6Addresses(String... ipv6Addresses) The IPv6 address of the Amazon Lightsail instance.ipv6Addresses(Collection<String> ipv6Addresses) The IPv6 address of the Amazon Lightsail instance.For RDP access, the password for your Amazon Lightsail instance.default InstanceAccessDetails.BuilderpasswordData(Consumer<PasswordData.Builder> passwordData) For a Windows Server-based instance, an object with the data you can use to retrieve your password.passwordData(PasswordData passwordData) For a Windows Server-based instance, an object with the data you can use to retrieve your password.privateKey(String privateKey) For SSH access, the temporary private key.The protocol for these Amazon Lightsail instance access details.protocol(InstanceAccessProtocol protocol) The protocol for these Amazon Lightsail instance access details.The user name to use when logging in to the Amazon Lightsail instance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
certKeyFor SSH access, the public key to use when accessing your instance For OpenSSH clients (command line SSH), you should save this value to tempkey-cert.pub.- Parameters:
- certKey- For SSH access, the public key to use when accessing your instance For OpenSSH clients (command line SSH), you should save this value to- tempkey-cert.pub.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
expiresAtFor SSH access, the date on which the temporary keys expire. - Parameters:
- expiresAt- For SSH access, the date on which the temporary keys expire.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
ipAddressThe public IP address of the Amazon Lightsail instance. - Parameters:
- ipAddress- The public IP address of the Amazon Lightsail instance.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
ipv6AddressesThe IPv6 address of the Amazon Lightsail instance. - Parameters:
- ipv6Addresses- The IPv6 address of the Amazon Lightsail instance.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
ipv6AddressesThe IPv6 address of the Amazon Lightsail instance. - Parameters:
- ipv6Addresses- The IPv6 address of the Amazon Lightsail instance.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
passwordFor 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),passwordwill 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. - Parameters:
- 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),- passwordwill 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. 
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
passwordDataFor a Windows Server-based instance, an object with the data you can use to retrieve your password. This is only needed if passwordis 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.- Parameters:
- passwordData- For a Windows Server-based instance, an object with the data you can use to retrieve your password. This is only needed if- passwordis 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
passwordDataFor a Windows Server-based instance, an object with the data you can use to retrieve your password. This is only needed if This is a convenience method that creates an instance of thepasswordis 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.PasswordData.Builderavoiding the need to create one manually viaPasswordData.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topasswordData(PasswordData).- Parameters:
- passwordData- a consumer that will call methods on- PasswordData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
privateKeyFor SSH access, the temporary private key. For OpenSSH clients (command line SSH), you should save this value to tempkey).- Parameters:
- privateKey- For SSH access, the temporary private key. For OpenSSH clients (command line SSH), you should save this value to- tempkey).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
protocolThe protocol for these Amazon Lightsail instance access details. - Parameters:
- protocol- The protocol for these Amazon Lightsail instance access details.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
protocolThe protocol for these Amazon Lightsail instance access details. - Parameters:
- protocol- The protocol for these Amazon Lightsail instance access details.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
instanceNameThe name of this Amazon Lightsail instance. - Parameters:
- instanceName- The name of this Amazon Lightsail instance.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
usernameThe user name to use when logging in to the Amazon Lightsail instance. - Parameters:
- username- The user name to use when logging in to the Amazon Lightsail instance.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
hostKeysDescribes the public SSH host keys or the RDP certificate. - Parameters:
- hostKeys- Describes the public SSH host keys or the RDP certificate.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
hostKeysDescribes the public SSH host keys or the RDP certificate. - Parameters:
- hostKeys- Describes the public SSH host keys or the RDP certificate.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
hostKeysDescribes the public SSH host keys or the RDP certificate. This is a convenience method that creates an instance of theHostKeyAttributes.Builderavoiding the need to create one manually viaHostKeyAttributes.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohostKeys(List<HostKeyAttributes>).- Parameters:
- hostKeys- a consumer that will call methods on- HostKeyAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-