Struct aws_sdk_cloudfront::types::builders::PublicKeyConfigBuilder
source · #[non_exhaustive]pub struct PublicKeyConfigBuilder { /* private fields */ }
Expand description
A builder for PublicKeyConfig
.
Implementations§
source§impl PublicKeyConfigBuilder
impl PublicKeyConfigBuilder
sourcepub fn caller_reference(self, input: impl Into<String>) -> Self
pub fn caller_reference(self, input: impl Into<String>) -> Self
A string included in the request to help make sure that the request can't be replayed.
This field is required.sourcepub fn set_caller_reference(self, input: Option<String>) -> Self
pub fn set_caller_reference(self, input: Option<String>) -> Self
A string included in the request to help make sure that the request can't be replayed.
sourcepub fn get_caller_reference(&self) -> &Option<String>
pub fn get_caller_reference(&self) -> &Option<String>
A string included in the request to help make sure that the request can't be replayed.
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 encoded_key(self, input: impl Into<String>) -> Self
pub fn encoded_key(self, input: impl Into<String>) -> Self
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
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 that you can use with signed URLs and signed cookies, or with field-level encryption.
sourcepub fn get_encoded_key(&self) -> &Option<String>
pub fn get_encoded_key(&self) -> &Option<String>
The public key that you can use with signed URLs and signed cookies, or with field-level encryption.
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<PublicKeyConfig, BuildError>
pub fn build(self) -> Result<PublicKeyConfig, BuildError>
Consumes the builder and constructs a PublicKeyConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PublicKeyConfigBuilder
impl Clone for PublicKeyConfigBuilder
source§fn clone(&self) -> PublicKeyConfigBuilder
fn clone(&self) -> PublicKeyConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PublicKeyConfigBuilder
impl Debug for PublicKeyConfigBuilder
source§impl Default for PublicKeyConfigBuilder
impl Default for PublicKeyConfigBuilder
source§fn default() -> PublicKeyConfigBuilder
fn default() -> PublicKeyConfigBuilder
source§impl PartialEq for PublicKeyConfigBuilder
impl PartialEq for PublicKeyConfigBuilder
source§fn eq(&self, other: &PublicKeyConfigBuilder) -> bool
fn eq(&self, other: &PublicKeyConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PublicKeyConfigBuilder
Auto Trait Implementations§
impl Freeze for PublicKeyConfigBuilder
impl RefUnwindSafe for PublicKeyConfigBuilder
impl Send for PublicKeyConfigBuilder
impl Sync for PublicKeyConfigBuilder
impl Unpin for PublicKeyConfigBuilder
impl UnwindSafe for PublicKeyConfigBuilder
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