#[non_exhaustive]pub struct ImportHostKeyInputBuilder { /* private fields */ }
Expand description
A builder for ImportHostKeyInput
.
Implementations§
source§impl ImportHostKeyInputBuilder
impl ImportHostKeyInputBuilder
sourcepub fn server_id(self, input: impl Into<String>) -> Self
pub fn server_id(self, input: impl Into<String>) -> Self
The identifier of the server that contains the host key that you are importing.
This field is required.sourcepub fn set_server_id(self, input: Option<String>) -> Self
pub fn set_server_id(self, input: Option<String>) -> Self
The identifier of the server that contains the host key that you are importing.
sourcepub fn get_server_id(&self) -> &Option<String>
pub fn get_server_id(&self) -> &Option<String>
The identifier of the server that contains the host key that you are importing.
sourcepub fn host_key_body(self, input: impl Into<String>) -> Self
pub fn host_key_body(self, input: impl Into<String>) -> Self
The private key portion of an SSH key pair.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
This field is required.sourcepub fn set_host_key_body(self, input: Option<String>) -> Self
pub fn set_host_key_body(self, input: Option<String>) -> Self
The private key portion of an SSH key pair.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
sourcepub fn get_host_key_body(&self) -> &Option<String>
pub fn get_host_key_body(&self) -> &Option<String>
The private key portion of an SSH key pair.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The text description that identifies this host key.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The text description that identifies this host key.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The text description that identifies this host key.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Key-value pairs that can be used to group and search for host keys.
Key-value pairs that can be used to group and search for host keys.
Key-value pairs that can be used to group and search for host keys.
sourcepub fn build(self) -> Result<ImportHostKeyInput, BuildError>
pub fn build(self) -> Result<ImportHostKeyInput, BuildError>
Consumes the builder and constructs a ImportHostKeyInput
.
source§impl ImportHostKeyInputBuilder
impl ImportHostKeyInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<ImportHostKeyOutput, SdkError<ImportHostKeyError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<ImportHostKeyOutput, SdkError<ImportHostKeyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ImportHostKeyInputBuilder
impl Clone for ImportHostKeyInputBuilder
source§fn clone(&self) -> ImportHostKeyInputBuilder
fn clone(&self) -> ImportHostKeyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportHostKeyInputBuilder
impl Debug for ImportHostKeyInputBuilder
source§impl Default for ImportHostKeyInputBuilder
impl Default for ImportHostKeyInputBuilder
source§fn default() -> ImportHostKeyInputBuilder
fn default() -> ImportHostKeyInputBuilder
source§impl PartialEq for ImportHostKeyInputBuilder
impl PartialEq for ImportHostKeyInputBuilder
source§fn eq(&self, other: &ImportHostKeyInputBuilder) -> bool
fn eq(&self, other: &ImportHostKeyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImportHostKeyInputBuilder
Auto Trait Implementations§
impl Freeze for ImportHostKeyInputBuilder
impl RefUnwindSafe for ImportHostKeyInputBuilder
impl Send for ImportHostKeyInputBuilder
impl Sync for ImportHostKeyInputBuilder
impl Unpin for ImportHostKeyInputBuilder
impl UnwindSafe for ImportHostKeyInputBuilder
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