Struct aws_sdk_cloudformation::model::TemplateParameter
source · #[non_exhaustive]pub struct TemplateParameter { /* private fields */ }Expand description
The TemplateParameter data type.
Implementations§
source§impl TemplateParameter
impl TemplateParameter
sourcepub fn parameter_key(&self) -> Option<&str>
pub fn parameter_key(&self) -> Option<&str>
The name associated with the parameter.
sourcepub fn default_value(&self) -> Option<&str>
pub fn default_value(&self) -> Option<&str>
The default value associated with the parameter.
sourcepub fn no_echo(&self) -> Option<bool>
pub fn no_echo(&self) -> Option<bool>
Flag indicating whether the parameter should be displayed as plain text in logs and UIs.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
User defined description associated with the parameter.
source§impl TemplateParameter
impl TemplateParameter
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TemplateParameter.
Examples found in repository?
src/xml_deser.rs (line 9487)
9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548
pub fn deser_structure_crate_model_template_parameter(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TemplateParameter, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TemplateParameter::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ParameterKey") /* ParameterKey com.amazonaws.cloudformation#TemplateParameter$ParameterKey */ => {
let var_443 =
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_parameter_key(var_443);
}
,
s if s.matches("DefaultValue") /* DefaultValue com.amazonaws.cloudformation#TemplateParameter$DefaultValue */ => {
let var_444 =
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_default_value(var_444);
}
,
s if s.matches("NoEcho") /* NoEcho com.amazonaws.cloudformation#TemplateParameter$NoEcho */ => {
let var_445 =
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.cloudformation#NoEcho`)"))
}
?
)
;
builder = builder.set_no_echo(var_445);
}
,
s if s.matches("Description") /* Description com.amazonaws.cloudformation#TemplateParameter$Description */ => {
let var_446 =
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_description(var_446);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for TemplateParameter
impl Clone for TemplateParameter
source§fn clone(&self) -> TemplateParameter
fn clone(&self) -> TemplateParameter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more