Struct aws_sdk_ec2::model::license_configuration::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for LicenseConfiguration
.
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 67471)
67454 67455 67456 67457 67458 67459 67460 67461 67462 67463 67464 67465 67466 67467 67468 67469 67470 67471 67472 67473 67474 67475 67476 67477 67478
pub fn deser_structure_crate_model_license_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LicenseConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::LicenseConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("licenseConfigurationArn") /* LicenseConfigurationArn com.amazonaws.ec2#LicenseConfiguration$LicenseConfigurationArn */ => {
let var_3325 =
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_3325);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> LicenseConfiguration
pub fn build(self) -> LicenseConfiguration
Consumes the builder and constructs a LicenseConfiguration
.
Examples found in repository?
src/xml_deser.rs (line 67477)
67454 67455 67456 67457 67458 67459 67460 67461 67462 67463 67464 67465 67466 67467 67468 67469 67470 67471 67472 67473 67474 67475 67476 67477 67478
pub fn deser_structure_crate_model_license_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LicenseConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::LicenseConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("licenseConfigurationArn") /* LicenseConfigurationArn com.amazonaws.ec2#LicenseConfiguration$LicenseConfigurationArn */ => {
let var_3325 =
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_3325);
}
,
_ => {}
}
}
Ok(builder.build())
}