Struct aws_sdk_cloudfront::model::query_arg_profile_config::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for QueryArgProfileConfig
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn forward_when_query_arg_profile_is_unknown(self, input: bool) -> Self
pub fn forward_when_query_arg_profile_is_unknown(self, input: bool) -> Self
Flag to set if you want a request to be forwarded to the origin even if the profile specified by the field-level encryption query argument, fle-profile, is unknown.
sourcepub fn set_forward_when_query_arg_profile_is_unknown(
self,
input: Option<bool>
) -> Self
pub fn set_forward_when_query_arg_profile_is_unknown(
self,
input: Option<bool>
) -> Self
Flag to set if you want a request to be forwarded to the origin even if the profile specified by the field-level encryption query argument, fle-profile, is unknown.
Examples found in repository?
src/xml_deser.rs (line 10270)
10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287
pub fn deser_structure_crate_model_query_arg_profile_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::QueryArgProfileConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::QueryArgProfileConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ForwardWhenQueryArgProfileIsUnknown") /* ForwardWhenQueryArgProfileIsUnknown com.amazonaws.cloudfront#QueryArgProfileConfig$ForwardWhenQueryArgProfileIsUnknown */ => {
let var_406 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudfront#boolean`)"))
}
?
)
;
builder = builder.set_forward_when_query_arg_profile_is_unknown(var_406);
}
,
s if s.matches("QueryArgProfiles") /* QueryArgProfiles com.amazonaws.cloudfront#QueryArgProfileConfig$QueryArgProfiles */ => {
let var_407 =
Some(
crate::xml_deser::deser_structure_crate_model_query_arg_profiles(&mut tag)
?
)
;
builder = builder.set_query_arg_profiles(var_407);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn query_arg_profiles(self, input: QueryArgProfiles) -> Self
pub fn query_arg_profiles(self, input: QueryArgProfiles) -> Self
Profiles specified for query argument-profile mapping for field-level encryption.
sourcepub fn set_query_arg_profiles(self, input: Option<QueryArgProfiles>) -> Self
pub fn set_query_arg_profiles(self, input: Option<QueryArgProfiles>) -> Self
Profiles specified for query argument-profile mapping for field-level encryption.
Examples found in repository?
src/xml_deser.rs (line 10280)
10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287
pub fn deser_structure_crate_model_query_arg_profile_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::QueryArgProfileConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::QueryArgProfileConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ForwardWhenQueryArgProfileIsUnknown") /* ForwardWhenQueryArgProfileIsUnknown com.amazonaws.cloudfront#QueryArgProfileConfig$ForwardWhenQueryArgProfileIsUnknown */ => {
let var_406 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudfront#boolean`)"))
}
?
)
;
builder = builder.set_forward_when_query_arg_profile_is_unknown(var_406);
}
,
s if s.matches("QueryArgProfiles") /* QueryArgProfiles com.amazonaws.cloudfront#QueryArgProfileConfig$QueryArgProfiles */ => {
let var_407 =
Some(
crate::xml_deser::deser_structure_crate_model_query_arg_profiles(&mut tag)
?
)
;
builder = builder.set_query_arg_profiles(var_407);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> QueryArgProfileConfig
pub fn build(self) -> QueryArgProfileConfig
Consumes the builder and constructs a QueryArgProfileConfig
.
Examples found in repository?
src/xml_deser.rs (line 10286)
10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287
pub fn deser_structure_crate_model_query_arg_profile_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::QueryArgProfileConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::QueryArgProfileConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ForwardWhenQueryArgProfileIsUnknown") /* ForwardWhenQueryArgProfileIsUnknown com.amazonaws.cloudfront#QueryArgProfileConfig$ForwardWhenQueryArgProfileIsUnknown */ => {
let var_406 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.cloudfront#boolean`)"))
}
?
)
;
builder = builder.set_forward_when_query_arg_profile_is_unknown(var_406);
}
,
s if s.matches("QueryArgProfiles") /* QueryArgProfiles com.amazonaws.cloudfront#QueryArgProfileConfig$QueryArgProfiles */ => {
let var_407 =
Some(
crate::xml_deser::deser_structure_crate_model_query_arg_profiles(&mut tag)
?
)
;
builder = builder.set_query_arg_profiles(var_407);
}
,
_ => {}
}
}
Ok(builder.build())
}