Struct aws_sdk_cloudfront::model::query_arg_profiles::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for QueryArgProfiles.
Implementations§
source§impl Builder
impl Builder
sourcepub fn quantity(self, input: i32) -> Self
pub fn quantity(self, input: i32) -> Self
Number of profiles for query argument-profile mapping for field-level encryption.
sourcepub fn set_quantity(self, input: Option<i32>) -> Self
pub fn set_quantity(self, input: Option<i32>) -> Self
Number of profiles for query argument-profile mapping for field-level encryption.
Examples found in repository?
src/xml_deser.rs (line 11951)
11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968
pub fn deser_structure_crate_model_query_arg_profiles(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::QueryArgProfiles, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::QueryArgProfiles::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#QueryArgProfiles$Quantity */ => {
let var_472 =
Some(
{
<i32 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 (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_quantity(var_472);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#QueryArgProfiles$Items */ => {
let var_473 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_query_arg_profile_list(&mut tag)
?
)
;
builder = builder.set_items(var_473);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn items(self, input: QueryArgProfile) -> Self
pub fn items(self, input: QueryArgProfile) -> Self
Appends an item to items.
To override the contents of this collection use set_items.
Number of items for query argument-profile mapping for field-level encryption.
sourcepub fn set_items(self, input: Option<Vec<QueryArgProfile>>) -> Self
pub fn set_items(self, input: Option<Vec<QueryArgProfile>>) -> Self
Number of items for query argument-profile mapping for field-level encryption.
Examples found in repository?
src/xml_deser.rs (line 11961)
11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968
pub fn deser_structure_crate_model_query_arg_profiles(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::QueryArgProfiles, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::QueryArgProfiles::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#QueryArgProfiles$Quantity */ => {
let var_472 =
Some(
{
<i32 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 (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_quantity(var_472);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#QueryArgProfiles$Items */ => {
let var_473 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_query_arg_profile_list(&mut tag)
?
)
;
builder = builder.set_items(var_473);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn build(self) -> QueryArgProfiles
pub fn build(self) -> QueryArgProfiles
Consumes the builder and constructs a QueryArgProfiles.
Examples found in repository?
src/xml_deser.rs (line 11967)
11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968
pub fn deser_structure_crate_model_query_arg_profiles(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::QueryArgProfiles, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::QueryArgProfiles::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#QueryArgProfiles$Quantity */ => {
let var_472 =
Some(
{
<i32 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 (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_quantity(var_472);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#QueryArgProfiles$Items */ => {
let var_473 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_query_arg_profile_list(&mut tag)
?
)
;
builder = builder.set_items(var_473);
}
,
_ => {}
}
}
Ok(builder.build())
}