Struct aws_sdk_transfer::operation::import_ssh_public_key::builders::ImportSshPublicKeyOutputBuilder
source · #[non_exhaustive]pub struct ImportSshPublicKeyOutputBuilder { /* private fields */ }
Expand description
A builder for ImportSshPublicKeyOutput
.
Implementations§
source§impl ImportSshPublicKeyOutputBuilder
impl ImportSshPublicKeyOutputBuilder
sourcepub fn server_id(self, input: impl Into<String>) -> Self
pub fn server_id(self, input: impl Into<String>) -> Self
A system-assigned unique identifier for a server.
This field is required.sourcepub fn set_server_id(self, input: Option<String>) -> Self
pub fn set_server_id(self, input: Option<String>) -> Self
A system-assigned unique identifier for a server.
sourcepub fn get_server_id(&self) -> &Option<String>
pub fn get_server_id(&self) -> &Option<String>
A system-assigned unique identifier for a server.
sourcepub fn ssh_public_key_id(self, input: impl Into<String>) -> Self
pub fn ssh_public_key_id(self, input: impl Into<String>) -> Self
The name given to a public key by the system that was imported.
This field is required.sourcepub fn set_ssh_public_key_id(self, input: Option<String>) -> Self
pub fn set_ssh_public_key_id(self, input: Option<String>) -> Self
The name given to a public key by the system that was imported.
sourcepub fn get_ssh_public_key_id(&self) -> &Option<String>
pub fn get_ssh_public_key_id(&self) -> &Option<String>
The name given to a public key by the system that was imported.
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
A user name assigned to the ServerID
value that you specified.
sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
A user name assigned to the ServerID
value that you specified.
sourcepub fn get_user_name(&self) -> &Option<String>
pub fn get_user_name(&self) -> &Option<String>
A user name assigned to the ServerID
value that you specified.
sourcepub fn build(self) -> Result<ImportSshPublicKeyOutput, BuildError>
pub fn build(self) -> Result<ImportSshPublicKeyOutput, BuildError>
Consumes the builder and constructs a ImportSshPublicKeyOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ImportSshPublicKeyOutputBuilder
impl Clone for ImportSshPublicKeyOutputBuilder
source§fn clone(&self) -> ImportSshPublicKeyOutputBuilder
fn clone(&self) -> ImportSshPublicKeyOutputBuilder
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 Default for ImportSshPublicKeyOutputBuilder
impl Default for ImportSshPublicKeyOutputBuilder
source§fn default() -> ImportSshPublicKeyOutputBuilder
fn default() -> ImportSshPublicKeyOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ImportSshPublicKeyOutputBuilder
impl PartialEq for ImportSshPublicKeyOutputBuilder
source§fn eq(&self, other: &ImportSshPublicKeyOutputBuilder) -> bool
fn eq(&self, other: &ImportSshPublicKeyOutputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImportSshPublicKeyOutputBuilder
Auto Trait Implementations§
impl Freeze for ImportSshPublicKeyOutputBuilder
impl RefUnwindSafe for ImportSshPublicKeyOutputBuilder
impl Send for ImportSshPublicKeyOutputBuilder
impl Sync for ImportSshPublicKeyOutputBuilder
impl Unpin for ImportSshPublicKeyOutputBuilder
impl UnwindSafe for ImportSshPublicKeyOutputBuilder
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
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.