#[non_exhaustive]pub struct CloudFrontOriginAccessIdentityConfigBuilder { /* private fields */ }
Expand description
A builder for CloudFrontOriginAccessIdentityConfig
.
Implementations§
source§impl CloudFrontOriginAccessIdentityConfigBuilder
impl CloudFrontOriginAccessIdentityConfigBuilder
sourcepub fn caller_reference(self, input: impl Into<String>) -> Self
pub fn caller_reference(self, input: impl Into<String>) -> Self
A unique value (for example, a date-time stamp) that ensures that the request can't be replayed.
If the value of CallerReference
is new (regardless of the content of the CloudFrontOriginAccessIdentityConfig
object), a new origin access identity is created.
If the CallerReference
is a value already sent in a previous identity request, and the content of the CloudFrontOriginAccessIdentityConfig
is identical to the original request (ignoring white space), the response includes the same information returned to the original request.
If the CallerReference
is a value you already sent in a previous request to create an identity, but the content of the CloudFrontOriginAccessIdentityConfig
is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists
error.
sourcepub fn set_caller_reference(self, input: Option<String>) -> Self
pub fn set_caller_reference(self, input: Option<String>) -> Self
A unique value (for example, a date-time stamp) that ensures that the request can't be replayed.
If the value of CallerReference
is new (regardless of the content of the CloudFrontOriginAccessIdentityConfig
object), a new origin access identity is created.
If the CallerReference
is a value already sent in a previous identity request, and the content of the CloudFrontOriginAccessIdentityConfig
is identical to the original request (ignoring white space), the response includes the same information returned to the original request.
If the CallerReference
is a value you already sent in a previous request to create an identity, but the content of the CloudFrontOriginAccessIdentityConfig
is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists
error.
sourcepub fn get_caller_reference(&self) -> &Option<String>
pub fn get_caller_reference(&self) -> &Option<String>
A unique value (for example, a date-time stamp) that ensures that the request can't be replayed.
If the value of CallerReference
is new (regardless of the content of the CloudFrontOriginAccessIdentityConfig
object), a new origin access identity is created.
If the CallerReference
is a value already sent in a previous identity request, and the content of the CloudFrontOriginAccessIdentityConfig
is identical to the original request (ignoring white space), the response includes the same information returned to the original request.
If the CallerReference
is a value you already sent in a previous request to create an identity, but the content of the CloudFrontOriginAccessIdentityConfig
is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists
error.
sourcepub fn comment(self, input: impl Into<String>) -> Self
pub fn comment(self, input: impl Into<String>) -> Self
A comment to describe the origin access identity. The comment cannot be longer than 128 characters.
This field is required.sourcepub fn set_comment(self, input: Option<String>) -> Self
pub fn set_comment(self, input: Option<String>) -> Self
A comment to describe the origin access identity. 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 origin access identity. The comment cannot be longer than 128 characters.
sourcepub fn build(self) -> Result<CloudFrontOriginAccessIdentityConfig, BuildError>
pub fn build(self) -> Result<CloudFrontOriginAccessIdentityConfig, BuildError>
Consumes the builder and constructs a CloudFrontOriginAccessIdentityConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CloudFrontOriginAccessIdentityConfigBuilder
impl Clone for CloudFrontOriginAccessIdentityConfigBuilder
source§fn clone(&self) -> CloudFrontOriginAccessIdentityConfigBuilder
fn clone(&self) -> CloudFrontOriginAccessIdentityConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CloudFrontOriginAccessIdentityConfigBuilder
impl Default for CloudFrontOriginAccessIdentityConfigBuilder
source§fn default() -> CloudFrontOriginAccessIdentityConfigBuilder
fn default() -> CloudFrontOriginAccessIdentityConfigBuilder
source§impl PartialEq for CloudFrontOriginAccessIdentityConfigBuilder
impl PartialEq for CloudFrontOriginAccessIdentityConfigBuilder
source§fn eq(&self, other: &CloudFrontOriginAccessIdentityConfigBuilder) -> bool
fn eq(&self, other: &CloudFrontOriginAccessIdentityConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CloudFrontOriginAccessIdentityConfigBuilder
Auto Trait Implementations§
impl Freeze for CloudFrontOriginAccessIdentityConfigBuilder
impl RefUnwindSafe for CloudFrontOriginAccessIdentityConfigBuilder
impl Send for CloudFrontOriginAccessIdentityConfigBuilder
impl Sync for CloudFrontOriginAccessIdentityConfigBuilder
impl Unpin for CloudFrontOriginAccessIdentityConfigBuilder
impl UnwindSafe for CloudFrontOriginAccessIdentityConfigBuilder
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