Struct aws_sdk_iam::types::builders::SshPublicKeyBuilder
source · #[non_exhaustive]pub struct SshPublicKeyBuilder { /* private fields */ }
Expand description
A builder for SshPublicKey
.
Implementations§
source§impl SshPublicKeyBuilder
impl SshPublicKeyBuilder
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 fingerprint(self, input: impl Into<String>) -> Self
pub fn fingerprint(self, input: impl Into<String>) -> Self
The MD5 message digest of the SSH public key.
This field is required.sourcepub fn set_fingerprint(self, input: Option<String>) -> Self
pub fn set_fingerprint(self, input: Option<String>) -> Self
The MD5 message digest of the SSH public key.
sourcepub fn get_fingerprint(&self) -> &Option<String>
pub fn get_fingerprint(&self) -> &Option<String>
The MD5 message digest of the SSH public key.
sourcepub fn ssh_public_key_body(self, input: impl Into<String>) -> Self
pub fn ssh_public_key_body(self, input: impl Into<String>) -> Self
The SSH public key.
This field is required.sourcepub fn set_ssh_public_key_body(self, input: Option<String>) -> Self
pub fn set_ssh_public_key_body(self, input: Option<String>) -> Self
The SSH public key.
sourcepub fn get_ssh_public_key_body(&self) -> &Option<String>
pub fn get_ssh_public_key_body(&self) -> &Option<String>
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.
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<SshPublicKey, BuildError>
pub fn build(self) -> Result<SshPublicKey, BuildError>
Consumes the builder and constructs a SshPublicKey
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SshPublicKeyBuilder
impl Clone for SshPublicKeyBuilder
source§fn clone(&self) -> SshPublicKeyBuilder
fn clone(&self) -> SshPublicKeyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SshPublicKeyBuilder
impl Debug for SshPublicKeyBuilder
source§impl Default for SshPublicKeyBuilder
impl Default for SshPublicKeyBuilder
source§fn default() -> SshPublicKeyBuilder
fn default() -> SshPublicKeyBuilder
source§impl PartialEq for SshPublicKeyBuilder
impl PartialEq for SshPublicKeyBuilder
source§fn eq(&self, other: &SshPublicKeyBuilder) -> bool
fn eq(&self, other: &SshPublicKeyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.