Struct aws_sdk_ec2::model::LicenseConfiguration
source · #[non_exhaustive]pub struct LicenseConfiguration { /* private fields */ }
Expand description
Describes a license configuration.
Implementations§
source§impl LicenseConfiguration
impl LicenseConfiguration
sourcepub fn license_configuration_arn(&self) -> Option<&str>
pub fn license_configuration_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the license configuration.
source§impl LicenseConfiguration
impl LicenseConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LicenseConfiguration
.
Examples found in repository?
src/xml_deser.rs (line 67458)
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())
}
Trait Implementations§
source§impl Clone for LicenseConfiguration
impl Clone for LicenseConfiguration
source§fn clone(&self) -> LicenseConfiguration
fn clone(&self) -> LicenseConfiguration
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