pub struct Builder { /* private fields */ }
Expand description
A builder for LaunchTemplateLicenseConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn license_configuration_arn(self, input: impl Into<String>) -> Self
pub fn license_configuration_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the license configuration.
sourcepub fn set_license_configuration_arn(self, input: Option<String>) -> Self
pub fn set_license_configuration_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the license configuration.
Examples found in repository?
src/xml_deser.rs (line 61831)
61813 61814 61815 61816 61817 61818 61819 61820 61821 61822 61823 61824 61825 61826 61827 61828 61829 61830 61831 61832 61833 61834 61835 61836 61837 61838
pub fn deser_structure_crate_model_launch_template_license_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LaunchTemplateLicenseConfiguration, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::LaunchTemplateLicenseConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("licenseConfigurationArn") /* LicenseConfigurationArn com.amazonaws.ec2#LaunchTemplateLicenseConfiguration$LicenseConfigurationArn */ => {
let var_3024 =
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_license_configuration_arn(var_3024);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> LaunchTemplateLicenseConfiguration
pub fn build(self) -> LaunchTemplateLicenseConfiguration
Consumes the builder and constructs a LaunchTemplateLicenseConfiguration
.
Examples found in repository?
src/xml_deser.rs (line 61837)
61813 61814 61815 61816 61817 61818 61819 61820 61821 61822 61823 61824 61825 61826 61827 61828 61829 61830 61831 61832 61833 61834 61835 61836 61837 61838
pub fn deser_structure_crate_model_launch_template_license_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LaunchTemplateLicenseConfiguration, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::LaunchTemplateLicenseConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("licenseConfigurationArn") /* LicenseConfigurationArn com.amazonaws.ec2#LaunchTemplateLicenseConfiguration$LicenseConfigurationArn */ => {
let var_3024 =
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_license_configuration_arn(var_3024);
}
,
_ => {}
}
}
Ok(builder.build())
}