Struct aws_sdk_cloudfront::types::builders::PublicKeySummaryBuilder
source · #[non_exhaustive]pub struct PublicKeySummaryBuilder { /* private fields */ }
Expand description
A builder for PublicKeySummary
.
Implementations§
source§impl PublicKeySummaryBuilder
impl PublicKeySummaryBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier of the public key.
This field is required.sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name to help identify the public key.
This field is required.sourcepub fn created_time(self, input: DateTime) -> Self
pub fn created_time(self, input: DateTime) -> Self
The date and time when the public key was uploaded.
This field is required.sourcepub fn set_created_time(self, input: Option<DateTime>) -> Self
pub fn set_created_time(self, input: Option<DateTime>) -> Self
The date and time when the public key was uploaded.
sourcepub fn get_created_time(&self) -> &Option<DateTime>
pub fn get_created_time(&self) -> &Option<DateTime>
The date and time when the public key was uploaded.
sourcepub fn encoded_key(self, input: impl Into<String>) -> Self
pub fn encoded_key(self, input: impl Into<String>) -> Self
The public key.
This field is required.sourcepub fn set_encoded_key(self, input: Option<String>) -> Self
pub fn set_encoded_key(self, input: Option<String>) -> Self
The public key.
sourcepub fn get_encoded_key(&self) -> &Option<String>
pub fn get_encoded_key(&self) -> &Option<String>
The public key.
sourcepub fn comment(self, input: impl Into<String>) -> Self
pub fn comment(self, input: impl Into<String>) -> Self
A comment to describe the public key. The comment cannot be longer than 128 characters.
sourcepub fn set_comment(self, input: Option<String>) -> Self
pub fn set_comment(self, input: Option<String>) -> Self
A comment to describe the public key. The comment cannot be longer than 128 characters.
sourcepub fn get_comment(&self) -> &Option<String>
pub fn get_comment(&self) -> &Option<String>
A comment to describe the public key. The comment cannot be longer than 128 characters.
sourcepub fn build(self) -> Result<PublicKeySummary, BuildError>
pub fn build(self) -> Result<PublicKeySummary, BuildError>
Consumes the builder and constructs a PublicKeySummary
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PublicKeySummaryBuilder
impl Clone for PublicKeySummaryBuilder
source§fn clone(&self) -> PublicKeySummaryBuilder
fn clone(&self) -> PublicKeySummaryBuilder
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 Debug for PublicKeySummaryBuilder
impl Debug for PublicKeySummaryBuilder
source§impl Default for PublicKeySummaryBuilder
impl Default for PublicKeySummaryBuilder
source§fn default() -> PublicKeySummaryBuilder
fn default() -> PublicKeySummaryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PublicKeySummaryBuilder
impl PartialEq for PublicKeySummaryBuilder
source§fn eq(&self, other: &PublicKeySummaryBuilder) -> bool
fn eq(&self, other: &PublicKeySummaryBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PublicKeySummaryBuilder
Auto Trait Implementations§
impl Freeze for PublicKeySummaryBuilder
impl RefUnwindSafe for PublicKeySummaryBuilder
impl Send for PublicKeySummaryBuilder
impl Sync for PublicKeySummaryBuilder
impl Unpin for PublicKeySummaryBuilder
impl UnwindSafe for PublicKeySummaryBuilder
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.