Struct aws_sdk_transfer::types::builders::DescribedHostKeyBuilder
source · #[non_exhaustive]pub struct DescribedHostKeyBuilder { /* private fields */ }
Expand description
A builder for DescribedHostKey
.
Implementations§
source§impl DescribedHostKeyBuilder
impl DescribedHostKeyBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The unique Amazon Resource Name (ARN) for the host key.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The unique Amazon Resource Name (ARN) for the host key.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The unique Amazon Resource Name (ARN) for the host key.
sourcepub fn host_key_id(self, input: impl Into<String>) -> Self
pub fn host_key_id(self, input: impl Into<String>) -> Self
A unique identifier for the host key.
sourcepub fn set_host_key_id(self, input: Option<String>) -> Self
pub fn set_host_key_id(self, input: Option<String>) -> Self
A unique identifier for the host key.
sourcepub fn get_host_key_id(&self) -> &Option<String>
pub fn get_host_key_id(&self) -> &Option<String>
A unique identifier for the host key.
sourcepub fn host_key_fingerprint(self, input: impl Into<String>) -> Self
pub fn host_key_fingerprint(self, input: impl Into<String>) -> Self
The public key fingerprint, which is a short sequence of bytes used to identify the longer public key.
sourcepub fn set_host_key_fingerprint(self, input: Option<String>) -> Self
pub fn set_host_key_fingerprint(self, input: Option<String>) -> Self
The public key fingerprint, which is a short sequence of bytes used to identify the longer public key.
sourcepub fn get_host_key_fingerprint(&self) -> &Option<String>
pub fn get_host_key_fingerprint(&self) -> &Option<String>
The public key fingerprint, which is a short sequence of bytes used to identify the longer public key.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The text description for this host key.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The text description for this host key.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The text description for this host key.
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The encryption algorithm that is used for the host key. The Type
parameter is specified by using one of the following values:
-
ssh-rsa
-
ssh-ed25519
-
ecdsa-sha2-nistp256
-
ecdsa-sha2-nistp384
-
ecdsa-sha2-nistp521
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The encryption algorithm that is used for the host key. The Type
parameter is specified by using one of the following values:
-
ssh-rsa
-
ssh-ed25519
-
ecdsa-sha2-nistp256
-
ecdsa-sha2-nistp384
-
ecdsa-sha2-nistp521
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
The encryption algorithm that is used for the host key. The Type
parameter is specified by using one of the following values:
-
ssh-rsa
-
ssh-ed25519
-
ecdsa-sha2-nistp256
-
ecdsa-sha2-nistp384
-
ecdsa-sha2-nistp521
sourcepub fn date_imported(self, input: DateTime) -> Self
pub fn date_imported(self, input: DateTime) -> Self
The date on which the host key was added to the server.
sourcepub fn set_date_imported(self, input: Option<DateTime>) -> Self
pub fn set_date_imported(self, input: Option<DateTime>) -> Self
The date on which the host key was added to the server.
sourcepub fn get_date_imported(&self) -> &Option<DateTime>
pub fn get_date_imported(&self) -> &Option<DateTime>
The date on which the host key was added to the server.
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<DescribedHostKey, BuildError>
pub fn build(self) -> Result<DescribedHostKey, BuildError>
Consumes the builder and constructs a DescribedHostKey
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DescribedHostKeyBuilder
impl Clone for DescribedHostKeyBuilder
source§fn clone(&self) -> DescribedHostKeyBuilder
fn clone(&self) -> DescribedHostKeyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DescribedHostKeyBuilder
impl Debug for DescribedHostKeyBuilder
source§impl Default for DescribedHostKeyBuilder
impl Default for DescribedHostKeyBuilder
source§fn default() -> DescribedHostKeyBuilder
fn default() -> DescribedHostKeyBuilder
source§impl PartialEq for DescribedHostKeyBuilder
impl PartialEq for DescribedHostKeyBuilder
source§fn eq(&self, other: &DescribedHostKeyBuilder) -> bool
fn eq(&self, other: &DescribedHostKeyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DescribedHostKeyBuilder
Auto Trait Implementations§
impl Freeze for DescribedHostKeyBuilder
impl RefUnwindSafe for DescribedHostKeyBuilder
impl Send for DescribedHostKeyBuilder
impl Sync for DescribedHostKeyBuilder
impl Unpin for DescribedHostKeyBuilder
impl UnwindSafe for DescribedHostKeyBuilder
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