Struct aws_sdk_ec2instanceconnect::operation::send_ssh_public_key::builders::SendSshPublicKeyInputBuilder
source · #[non_exhaustive]pub struct SendSshPublicKeyInputBuilder { /* private fields */ }
Expand description
A builder for SendSshPublicKeyInput
.
Implementations§
source§impl SendSshPublicKeyInputBuilder
impl SendSshPublicKeyInputBuilder
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of the EC2 instance.
This field is required.sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of the EC2 instance.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The ID of the EC2 instance.
sourcepub fn instance_os_user(self, input: impl Into<String>) -> Self
pub fn instance_os_user(self, input: impl Into<String>) -> Self
The OS user on the EC2 instance for whom the key can be used to authenticate.
This field is required.sourcepub fn set_instance_os_user(self, input: Option<String>) -> Self
pub fn set_instance_os_user(self, input: Option<String>) -> Self
The OS user on the EC2 instance for whom the key can be used to authenticate.
sourcepub fn get_instance_os_user(&self) -> &Option<String>
pub fn get_instance_os_user(&self) -> &Option<String>
The OS user on the EC2 instance for whom the key can be used to authenticate.
sourcepub fn ssh_public_key(self, input: impl Into<String>) -> Self
pub fn ssh_public_key(self, input: impl Into<String>) -> Self
The public key material. To use the public key, you must have the matching private key.
This field is required.sourcepub fn set_ssh_public_key(self, input: Option<String>) -> Self
pub fn set_ssh_public_key(self, input: Option<String>) -> Self
The public key material. To use the public key, you must have the matching private key.
sourcepub fn get_ssh_public_key(&self) -> &Option<String>
pub fn get_ssh_public_key(&self) -> &Option<String>
The public key material. To use the public key, you must have the matching private key.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone in which the EC2 instance was launched.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone in which the EC2 instance was launched.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The Availability Zone in which the EC2 instance was launched.
sourcepub fn build(self) -> Result<SendSshPublicKeyInput, BuildError>
pub fn build(self) -> Result<SendSshPublicKeyInput, BuildError>
Consumes the builder and constructs a SendSshPublicKeyInput
.
source§impl SendSshPublicKeyInputBuilder
impl SendSshPublicKeyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SendSshPublicKeyOutput, SdkError<SendSSHPublicKeyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SendSshPublicKeyOutput, SdkError<SendSSHPublicKeyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SendSshPublicKeyInputBuilder
impl Clone for SendSshPublicKeyInputBuilder
source§fn clone(&self) -> SendSshPublicKeyInputBuilder
fn clone(&self) -> SendSshPublicKeyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SendSshPublicKeyInputBuilder
impl Debug for SendSshPublicKeyInputBuilder
source§impl Default for SendSshPublicKeyInputBuilder
impl Default for SendSshPublicKeyInputBuilder
source§fn default() -> SendSshPublicKeyInputBuilder
fn default() -> SendSshPublicKeyInputBuilder
source§impl PartialEq for SendSshPublicKeyInputBuilder
impl PartialEq for SendSshPublicKeyInputBuilder
source§fn eq(&self, other: &SendSshPublicKeyInputBuilder) -> bool
fn eq(&self, other: &SendSshPublicKeyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.