pub struct Builder { /* private fields */ }Expand description
A builder for FieldLevelEncryptionConfig.
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 number that ensures the request can't be replayed.
sourcepub fn set_caller_reference(self, input: Option<String>) -> Self
pub fn set_caller_reference(self, input: Option<String>) -> Self
A unique number that ensures the request can't be replayed.
Examples found in repository?
7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357
pub fn deser_structure_crate_model_field_level_encryption_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FieldLevelEncryptionConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FieldLevelEncryptionConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CallerReference") /* CallerReference com.amazonaws.cloudfront#FieldLevelEncryptionConfig$CallerReference */ => {
let var_224 =
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_224);
}
,
s if s.matches("Comment") /* Comment com.amazonaws.cloudfront#FieldLevelEncryptionConfig$Comment */ => {
let var_225 =
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_225);
}
,
s if s.matches("QueryArgProfileConfig") /* QueryArgProfileConfig com.amazonaws.cloudfront#FieldLevelEncryptionConfig$QueryArgProfileConfig */ => {
let var_226 =
Some(
crate::xml_deser::deser_structure_crate_model_query_arg_profile_config(&mut tag)
?
)
;
builder = builder.set_query_arg_profile_config(var_226);
}
,
s if s.matches("ContentTypeProfileConfig") /* ContentTypeProfileConfig com.amazonaws.cloudfront#FieldLevelEncryptionConfig$ContentTypeProfileConfig */ => {
let var_227 =
Some(
crate::xml_deser::deser_structure_crate_model_content_type_profile_config(&mut tag)
?
)
;
builder = builder.set_content_type_profile_config(var_227);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn comment(self, input: impl Into<String>) -> Self
pub fn comment(self, input: impl Into<String>) -> Self
An optional comment about the configuration. 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
An optional comment about the configuration. The comment cannot be longer than 128 characters.
Examples found in repository?
7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357
pub fn deser_structure_crate_model_field_level_encryption_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FieldLevelEncryptionConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FieldLevelEncryptionConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CallerReference") /* CallerReference com.amazonaws.cloudfront#FieldLevelEncryptionConfig$CallerReference */ => {
let var_224 =
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_224);
}
,
s if s.matches("Comment") /* Comment com.amazonaws.cloudfront#FieldLevelEncryptionConfig$Comment */ => {
let var_225 =
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_225);
}
,
s if s.matches("QueryArgProfileConfig") /* QueryArgProfileConfig com.amazonaws.cloudfront#FieldLevelEncryptionConfig$QueryArgProfileConfig */ => {
let var_226 =
Some(
crate::xml_deser::deser_structure_crate_model_query_arg_profile_config(&mut tag)
?
)
;
builder = builder.set_query_arg_profile_config(var_226);
}
,
s if s.matches("ContentTypeProfileConfig") /* ContentTypeProfileConfig com.amazonaws.cloudfront#FieldLevelEncryptionConfig$ContentTypeProfileConfig */ => {
let var_227 =
Some(
crate::xml_deser::deser_structure_crate_model_content_type_profile_config(&mut tag)
?
)
;
builder = builder.set_content_type_profile_config(var_227);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn query_arg_profile_config(self, input: QueryArgProfileConfig) -> Self
pub fn query_arg_profile_config(self, input: QueryArgProfileConfig) -> Self
A complex data type that specifies when to forward content if a profile isn't found and the profile that can be provided as a query argument in a request.
sourcepub fn set_query_arg_profile_config(
self,
input: Option<QueryArgProfileConfig>
) -> Self
pub fn set_query_arg_profile_config(
self,
input: Option<QueryArgProfileConfig>
) -> Self
A complex data type that specifies when to forward content if a profile isn't found and the profile that can be provided as a query argument in a request.
Examples found in repository?
7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357
pub fn deser_structure_crate_model_field_level_encryption_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FieldLevelEncryptionConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FieldLevelEncryptionConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CallerReference") /* CallerReference com.amazonaws.cloudfront#FieldLevelEncryptionConfig$CallerReference */ => {
let var_224 =
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_224);
}
,
s if s.matches("Comment") /* Comment com.amazonaws.cloudfront#FieldLevelEncryptionConfig$Comment */ => {
let var_225 =
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_225);
}
,
s if s.matches("QueryArgProfileConfig") /* QueryArgProfileConfig com.amazonaws.cloudfront#FieldLevelEncryptionConfig$QueryArgProfileConfig */ => {
let var_226 =
Some(
crate::xml_deser::deser_structure_crate_model_query_arg_profile_config(&mut tag)
?
)
;
builder = builder.set_query_arg_profile_config(var_226);
}
,
s if s.matches("ContentTypeProfileConfig") /* ContentTypeProfileConfig com.amazonaws.cloudfront#FieldLevelEncryptionConfig$ContentTypeProfileConfig */ => {
let var_227 =
Some(
crate::xml_deser::deser_structure_crate_model_content_type_profile_config(&mut tag)
?
)
;
builder = builder.set_content_type_profile_config(var_227);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn content_type_profile_config(self, input: ContentTypeProfileConfig) -> Self
pub fn content_type_profile_config(self, input: ContentTypeProfileConfig) -> Self
A complex data type that specifies when to forward content if a content type isn't recognized and profiles to use as by default in a request if a query argument doesn't specify a profile to use.
sourcepub fn set_content_type_profile_config(
self,
input: Option<ContentTypeProfileConfig>
) -> Self
pub fn set_content_type_profile_config(
self,
input: Option<ContentTypeProfileConfig>
) -> Self
A complex data type that specifies when to forward content if a content type isn't recognized and profiles to use as by default in a request if a query argument doesn't specify a profile to use.
Examples found in repository?
7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357
pub fn deser_structure_crate_model_field_level_encryption_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FieldLevelEncryptionConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FieldLevelEncryptionConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CallerReference") /* CallerReference com.amazonaws.cloudfront#FieldLevelEncryptionConfig$CallerReference */ => {
let var_224 =
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_224);
}
,
s if s.matches("Comment") /* Comment com.amazonaws.cloudfront#FieldLevelEncryptionConfig$Comment */ => {
let var_225 =
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_225);
}
,
s if s.matches("QueryArgProfileConfig") /* QueryArgProfileConfig com.amazonaws.cloudfront#FieldLevelEncryptionConfig$QueryArgProfileConfig */ => {
let var_226 =
Some(
crate::xml_deser::deser_structure_crate_model_query_arg_profile_config(&mut tag)
?
)
;
builder = builder.set_query_arg_profile_config(var_226);
}
,
s if s.matches("ContentTypeProfileConfig") /* ContentTypeProfileConfig com.amazonaws.cloudfront#FieldLevelEncryptionConfig$ContentTypeProfileConfig */ => {
let var_227 =
Some(
crate::xml_deser::deser_structure_crate_model_content_type_profile_config(&mut tag)
?
)
;
builder = builder.set_content_type_profile_config(var_227);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn build(self) -> FieldLevelEncryptionConfig
pub fn build(self) -> FieldLevelEncryptionConfig
Consumes the builder and constructs a FieldLevelEncryptionConfig.
Examples found in repository?
7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357
pub fn deser_structure_crate_model_field_level_encryption_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FieldLevelEncryptionConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FieldLevelEncryptionConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CallerReference") /* CallerReference com.amazonaws.cloudfront#FieldLevelEncryptionConfig$CallerReference */ => {
let var_224 =
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_224);
}
,
s if s.matches("Comment") /* Comment com.amazonaws.cloudfront#FieldLevelEncryptionConfig$Comment */ => {
let var_225 =
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_225);
}
,
s if s.matches("QueryArgProfileConfig") /* QueryArgProfileConfig com.amazonaws.cloudfront#FieldLevelEncryptionConfig$QueryArgProfileConfig */ => {
let var_226 =
Some(
crate::xml_deser::deser_structure_crate_model_query_arg_profile_config(&mut tag)
?
)
;
builder = builder.set_query_arg_profile_config(var_226);
}
,
s if s.matches("ContentTypeProfileConfig") /* ContentTypeProfileConfig com.amazonaws.cloudfront#FieldLevelEncryptionConfig$ContentTypeProfileConfig */ => {
let var_227 =
Some(
crate::xml_deser::deser_structure_crate_model_content_type_profile_config(&mut tag)
?
)
;
builder = builder.set_content_type_profile_config(var_227);
}
,
_ => {}
}
}
Ok(builder.build())
}