Struct aws_sdk_iam::types::builders::SshPublicKeyMetadataBuilder
source · #[non_exhaustive]pub struct SshPublicKeyMetadataBuilder { /* private fields */ }
Expand description
A builder for SshPublicKeyMetadata
.
Implementations§
source§impl SshPublicKeyMetadataBuilder
impl SshPublicKeyMetadataBuilder
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
The name of the IAM user associated with the SSH public key.
This field is required.sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
The name of the IAM user associated with the SSH public key.
sourcepub fn get_user_name(&self) -> &Option<String>
pub fn get_user_name(&self) -> &Option<String>
The name of the IAM user associated with the SSH public key.
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 unique identifier for the SSH public key.
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 unique identifier for the SSH public key.
sourcepub fn get_ssh_public_key_id(&self) -> &Option<String>
pub fn get_ssh_public_key_id(&self) -> &Option<String>
The unique identifier for the SSH public key.
sourcepub fn status(self, input: StatusType) -> Self
pub fn status(self, input: StatusType) -> Self
The status of the SSH public key. Active
means that the key can be used for authentication with an CodeCommit repository. Inactive
means that the key cannot be used.
sourcepub fn set_status(self, input: Option<StatusType>) -> Self
pub fn set_status(self, input: Option<StatusType>) -> Self
The status of the SSH public key. Active
means that the key can be used for authentication with an CodeCommit repository. Inactive
means that the key cannot be used.
sourcepub fn get_status(&self) -> &Option<StatusType>
pub fn get_status(&self) -> &Option<StatusType>
The status of the SSH public key. Active
means that the key can be used for authentication with an CodeCommit repository. Inactive
means that the key cannot be used.
sourcepub fn upload_date(self, input: DateTime) -> Self
pub fn upload_date(self, input: DateTime) -> Self
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
This field is required.sourcepub fn set_upload_date(self, input: Option<DateTime>) -> Self
pub fn set_upload_date(self, input: Option<DateTime>) -> Self
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
sourcepub fn get_upload_date(&self) -> &Option<DateTime>
pub fn get_upload_date(&self) -> &Option<DateTime>
The date and time, in ISO 8601 date-time format, when the SSH public key was uploaded.
sourcepub fn build(self) -> Result<SshPublicKeyMetadata, BuildError>
pub fn build(self) -> Result<SshPublicKeyMetadata, BuildError>
Consumes the builder and constructs a SshPublicKeyMetadata
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SshPublicKeyMetadataBuilder
impl Clone for SshPublicKeyMetadataBuilder
source§fn clone(&self) -> SshPublicKeyMetadataBuilder
fn clone(&self) -> SshPublicKeyMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SshPublicKeyMetadataBuilder
impl Debug for SshPublicKeyMetadataBuilder
source§impl Default for SshPublicKeyMetadataBuilder
impl Default for SshPublicKeyMetadataBuilder
source§fn default() -> SshPublicKeyMetadataBuilder
fn default() -> SshPublicKeyMetadataBuilder
source§impl PartialEq for SshPublicKeyMetadataBuilder
impl PartialEq for SshPublicKeyMetadataBuilder
source§fn eq(&self, other: &SshPublicKeyMetadataBuilder) -> bool
fn eq(&self, other: &SshPublicKeyMetadataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.