Struct aws_sdk_ec2::model::LaunchTemplateVersion
source · #[non_exhaustive]pub struct LaunchTemplateVersion { /* private fields */ }
Expand description
Describes a launch template version.
Implementations§
source§impl LaunchTemplateVersion
impl LaunchTemplateVersion
sourcepub fn launch_template_id(&self) -> Option<&str>
pub fn launch_template_id(&self) -> Option<&str>
The ID of the launch template.
sourcepub fn launch_template_name(&self) -> Option<&str>
pub fn launch_template_name(&self) -> Option<&str>
The name of the launch template.
sourcepub fn version_number(&self) -> Option<i64>
pub fn version_number(&self) -> Option<i64>
The version number.
sourcepub fn version_description(&self) -> Option<&str>
pub fn version_description(&self) -> Option<&str>
The description for the version.
sourcepub fn create_time(&self) -> Option<&DateTime>
pub fn create_time(&self) -> Option<&DateTime>
The time the version was created.
sourcepub fn created_by(&self) -> Option<&str>
pub fn created_by(&self) -> Option<&str>
The principal that created the version.
sourcepub fn default_version(&self) -> Option<bool>
pub fn default_version(&self) -> Option<bool>
Indicates whether the version is the default version.
sourcepub fn launch_template_data(&self) -> Option<&ResponseLaunchTemplateData>
pub fn launch_template_data(&self) -> Option<&ResponseLaunchTemplateData>
Information about the launch template.
source§impl LaunchTemplateVersion
impl LaunchTemplateVersion
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LaunchTemplateVersion
.
Examples found in repository?
src/xml_deser.rs (line 27874)
27870 27871 27872 27873 27874 27875 27876 27877 27878 27879 27880 27881 27882 27883 27884 27885 27886 27887 27888 27889 27890 27891 27892 27893 27894 27895 27896 27897 27898 27899 27900 27901 27902 27903 27904 27905 27906 27907 27908 27909 27910 27911 27912 27913 27914 27915 27916 27917 27918 27919 27920 27921 27922 27923 27924 27925 27926 27927 27928 27929 27930 27931 27932 27933 27934 27935 27936 27937 27938 27939 27940 27941 27942 27943 27944 27945 27946 27947 27948 27949 27950 27951 27952 27953 27954 27955 27956 27957 27958 27959 27960 27961 27962 27963 27964 27965 27966 27967 27968 27969 27970 27971 27972 27973 27974 27975 27976 27977 27978 27979 27980 27981 27982 27983 27984 27985 27986 27987
pub fn deser_structure_crate_model_launch_template_version(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::LaunchTemplateVersion, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::LaunchTemplateVersion::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("launchTemplateId") /* LaunchTemplateId com.amazonaws.ec2#LaunchTemplateVersion$LaunchTemplateId */ => {
let var_1141 =
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_launch_template_id(var_1141);
}
,
s if s.matches("launchTemplateName") /* LaunchTemplateName com.amazonaws.ec2#LaunchTemplateVersion$LaunchTemplateName */ => {
let var_1142 =
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_launch_template_name(var_1142);
}
,
s if s.matches("versionNumber") /* VersionNumber com.amazonaws.ec2#LaunchTemplateVersion$VersionNumber */ => {
let var_1143 =
Some(
{
<i64 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 (long: `com.amazonaws.ec2#Long`)"))
}
?
)
;
builder = builder.set_version_number(var_1143);
}
,
s if s.matches("versionDescription") /* VersionDescription com.amazonaws.ec2#LaunchTemplateVersion$VersionDescription */ => {
let var_1144 =
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_version_description(var_1144);
}
,
s if s.matches("createTime") /* CreateTime com.amazonaws.ec2#LaunchTemplateVersion$CreateTime */ => {
let var_1145 =
Some(
aws_smithy_types::DateTime::from_str(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
, aws_smithy_types::date_time::Format::DateTime
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#DateTime`)"))
?
)
;
builder = builder.set_create_time(var_1145);
}
,
s if s.matches("createdBy") /* CreatedBy com.amazonaws.ec2#LaunchTemplateVersion$CreatedBy */ => {
let var_1146 =
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_created_by(var_1146);
}
,
s if s.matches("defaultVersion") /* DefaultVersion com.amazonaws.ec2#LaunchTemplateVersion$DefaultVersion */ => {
let var_1147 =
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.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_default_version(var_1147);
}
,
s if s.matches("launchTemplateData") /* LaunchTemplateData com.amazonaws.ec2#LaunchTemplateVersion$LaunchTemplateData */ => {
let var_1148 =
Some(
crate::xml_deser::deser_structure_crate_model_response_launch_template_data(&mut tag)
?
)
;
builder = builder.set_launch_template_data(var_1148);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for LaunchTemplateVersion
impl Clone for LaunchTemplateVersion
source§fn clone(&self) -> LaunchTemplateVersion
fn clone(&self) -> LaunchTemplateVersion
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