pub struct Builder { /* private fields */ }Expand description
A builder for ParameterConstraints.
Implementations§
source§impl Builder
impl Builder
sourcepub fn allowed_values(self, input: impl Into<String>) -> Self
pub fn allowed_values(self, input: impl Into<String>) -> Self
Appends an item to allowed_values.
To override the contents of this collection use set_allowed_values.
A list of values that are permitted for a parameter.
sourcepub fn set_allowed_values(self, input: Option<Vec<String>>) -> Self
pub fn set_allowed_values(self, input: Option<Vec<String>>) -> Self
A list of values that are permitted for a parameter.
Examples found in repository?
src/xml_deser.rs (line 9999)
9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006
pub fn deser_structure_crate_model_parameter_constraints(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ParameterConstraints, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ParameterConstraints::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("AllowedValues") /* AllowedValues com.amazonaws.cloudformation#ParameterConstraints$AllowedValues */ => {
let var_468 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_allowed_values(&mut tag)
?
)
;
builder = builder.set_allowed_values(var_468);
}
,
_ => {}
}
}
Ok(builder.build())
}sourcepub fn build(self) -> ParameterConstraints
pub fn build(self) -> ParameterConstraints
Consumes the builder and constructs a ParameterConstraints.
Examples found in repository?
src/xml_deser.rs (line 10005)
9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006
pub fn deser_structure_crate_model_parameter_constraints(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ParameterConstraints, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ParameterConstraints::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("AllowedValues") /* AllowedValues com.amazonaws.cloudformation#ParameterConstraints$AllowedValues */ => {
let var_468 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudformation_allowed_values(&mut tag)
?
)
;
builder = builder.set_allowed_values(var_468);
}
,
_ => {}
}
}
Ok(builder.build())
}