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.
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 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.
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 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.
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 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 build(self) -> Result<SendSshPublicKeyInput, BuildError>
pub fn build(self) -> Result<SendSshPublicKeyInput, BuildError>
Consumes the builder and constructs a SendSshPublicKeyInput
.
Trait Implementations§
source§impl Clone for SendSshPublicKeyInputBuilder
impl Clone for SendSshPublicKeyInputBuilder
source§fn clone(&self) -> SendSshPublicKeyInputBuilder
fn clone(&self) -> SendSshPublicKeyInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<SendSshPublicKeyInputBuilder> for SendSshPublicKeyInputBuilder
impl PartialEq<SendSshPublicKeyInputBuilder> for SendSshPublicKeyInputBuilder
source§fn eq(&self, other: &SendSshPublicKeyInputBuilder) -> bool
fn eq(&self, other: &SendSshPublicKeyInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SendSshPublicKeyInputBuilder
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more