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 ==
.impl StructuralPartialEq for SendSshPublicKeyInputBuilder
Auto Trait Implementations§
impl Freeze for SendSshPublicKeyInputBuilder
impl RefUnwindSafe for SendSshPublicKeyInputBuilder
impl Send for SendSshPublicKeyInputBuilder
impl Sync for SendSshPublicKeyInputBuilder
impl Unpin for SendSshPublicKeyInputBuilder
impl UnwindSafe for SendSshPublicKeyInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more