pub struct Builder { /* private fields */ }
Expand description
A builder for CloudFrontOriginAccessIdentityConfig
.
Implementations§
source§impl Builder
impl Builder
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.
Examples found in repository?
7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085
pub fn deser_structure_crate_model_cloud_front_origin_access_identity_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::CloudFrontOriginAccessIdentityConfig,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::CloudFrontOriginAccessIdentityConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CallerReference") /* CallerReference com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityConfig$CallerReference */ => {
let var_205 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_caller_reference(var_205);
}
,
s if s.matches("Comment") /* Comment com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityConfig$Comment */ => {
let var_206 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_comment(var_206);
}
,
_ => {}
}
}
Ok(builder.build())
}
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.
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.
Examples found in repository?
7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085
pub fn deser_structure_crate_model_cloud_front_origin_access_identity_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::CloudFrontOriginAccessIdentityConfig,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::CloudFrontOriginAccessIdentityConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CallerReference") /* CallerReference com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityConfig$CallerReference */ => {
let var_205 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_caller_reference(var_205);
}
,
s if s.matches("Comment") /* Comment com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityConfig$Comment */ => {
let var_206 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_comment(var_206);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> CloudFrontOriginAccessIdentityConfig
pub fn build(self) -> CloudFrontOriginAccessIdentityConfig
Consumes the builder and constructs a CloudFrontOriginAccessIdentityConfig
.
Examples found in repository?
7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085
pub fn deser_structure_crate_model_cloud_front_origin_access_identity_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::CloudFrontOriginAccessIdentityConfig,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::CloudFrontOriginAccessIdentityConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CallerReference") /* CallerReference com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityConfig$CallerReference */ => {
let var_205 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_caller_reference(var_205);
}
,
s if s.matches("Comment") /* Comment com.amazonaws.cloudfront#CloudFrontOriginAccessIdentityConfig$Comment */ => {
let var_206 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_comment(var_206);
}
,
_ => {}
}
}
Ok(builder.build())
}