Interface SendSshPublicKeyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SendSshPublicKeyRequest.Builder,SendSshPublicKeyRequest>,Ec2InstanceConnectRequest.Builder,SdkBuilder<SendSshPublicKeyRequest.Builder,SendSshPublicKeyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- SendSshPublicKeyRequest
public static interface SendSshPublicKeyRequest.Builder extends Ec2InstanceConnectRequest.Builder, SdkPojo, CopyableBuilder<SendSshPublicKeyRequest.Builder,SendSshPublicKeyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SendSshPublicKeyRequest.BuilderavailabilityZone(String availabilityZone)The Availability Zone in which the EC2 instance was launched.SendSshPublicKeyRequest.BuilderinstanceId(String instanceId)The ID of the EC2 instance.SendSshPublicKeyRequest.BuilderinstanceOSUser(String instanceOSUser)The OS user on the EC2 instance for whom the key can be used to authenticate.SendSshPublicKeyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)SendSshPublicKeyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)SendSshPublicKeyRequest.BuildersshPublicKey(String sshPublicKey)The public key material.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2instanceconnect.model.Ec2InstanceConnectRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
instanceId
SendSshPublicKeyRequest.Builder instanceId(String instanceId)
The ID of the EC2 instance.
- Parameters:
instanceId- The ID of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceOSUser
SendSshPublicKeyRequest.Builder instanceOSUser(String instanceOSUser)
The OS user on the EC2 instance for whom the key can be used to authenticate.
- Parameters:
instanceOSUser- The OS user on the EC2 instance for whom the key can be used to authenticate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sshPublicKey
SendSshPublicKeyRequest.Builder sshPublicKey(String sshPublicKey)
The public key material. To use the public key, you must have the matching private key.
- Parameters:
sshPublicKey- The public key material. To use the public key, you must have the matching private key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZone
SendSshPublicKeyRequest.Builder availabilityZone(String availabilityZone)
The Availability Zone in which the EC2 instance was launched.
- Parameters:
availabilityZone- The Availability Zone in which the EC2 instance was launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SendSshPublicKeyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
SendSshPublicKeyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-