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 ==
.