Struct aws_sdk_ec2::model::ImportImageTask
source · #[non_exhaustive]pub struct ImportImageTask { /* private fields */ }
Expand description
Describes an import image task.
Implementations§
source§impl ImportImageTask
impl ImportImageTask
sourcepub fn architecture(&self) -> Option<&str>
pub fn architecture(&self) -> Option<&str>
The architecture of the virtual machine.
Valid values: i386
| x86_64
| arm64
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the import task.
sourcepub fn hypervisor(&self) -> Option<&str>
pub fn hypervisor(&self) -> Option<&str>
The target hypervisor for the import task.
Valid values: xen
sourcepub fn image_id(&self) -> Option<&str>
pub fn image_id(&self) -> Option<&str>
The ID of the Amazon Machine Image (AMI) of the imported virtual machine.
sourcepub fn import_task_id(&self) -> Option<&str>
pub fn import_task_id(&self) -> Option<&str>
The ID of the import image task.
sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The identifier for the KMS key that was used to create the encrypted image.
sourcepub fn license_type(&self) -> Option<&str>
pub fn license_type(&self) -> Option<&str>
The license type of the virtual machine.
sourcepub fn snapshot_details(&self) -> Option<&[SnapshotDetail]>
pub fn snapshot_details(&self) -> Option<&[SnapshotDetail]>
Information about the snapshots.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
A descriptive status message for the import image task.
The tags for the import image task.
sourcepub fn license_specifications(
&self
) -> Option<&[ImportImageLicenseConfigurationResponse]>
pub fn license_specifications(
&self
) -> Option<&[ImportImageLicenseConfigurationResponse]>
The ARNs of the license configurations that are associated with the import image task.
sourcepub fn usage_operation(&self) -> Option<&str>
pub fn usage_operation(&self) -> Option<&str>
The usage operation value.
sourcepub fn boot_mode(&self) -> Option<&BootModeValues>
pub fn boot_mode(&self) -> Option<&BootModeValues>
The boot mode of the virtual machine.
source§impl ImportImageTask
impl ImportImageTask
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ImportImageTask
.
Examples found in repository?
46664 46665 46666 46667 46668 46669 46670 46671 46672 46673 46674 46675 46676 46677 46678 46679 46680 46681 46682 46683 46684 46685 46686 46687 46688 46689 46690 46691 46692 46693 46694 46695 46696 46697 46698 46699 46700 46701 46702 46703 46704 46705 46706 46707 46708 46709 46710 46711 46712 46713 46714 46715 46716 46717 46718 46719 46720 46721 46722 46723 46724 46725 46726 46727 46728 46729 46730 46731 46732 46733 46734 46735 46736 46737 46738 46739 46740 46741 46742 46743 46744 46745 46746 46747 46748 46749 46750 46751 46752 46753 46754 46755 46756 46757 46758 46759 46760 46761 46762 46763 46764 46765 46766 46767 46768 46769 46770 46771 46772 46773 46774 46775 46776 46777 46778 46779 46780 46781 46782 46783 46784 46785 46786 46787 46788 46789 46790 46791 46792 46793 46794 46795 46796 46797 46798 46799 46800 46801 46802 46803 46804 46805 46806 46807 46808 46809 46810 46811 46812 46813 46814 46815 46816 46817 46818 46819 46820 46821 46822 46823 46824 46825 46826 46827 46828 46829 46830 46831 46832 46833 46834 46835 46836 46837 46838 46839 46840 46841 46842 46843 46844 46845 46846 46847 46848 46849 46850 46851 46852 46853 46854 46855 46856 46857 46858 46859 46860 46861 46862 46863 46864 46865 46866 46867 46868 46869 46870 46871 46872 46873 46874 46875 46876 46877 46878 46879 46880 46881 46882 46883 46884 46885 46886 46887 46888 46889 46890
pub fn deser_structure_crate_model_import_image_task(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ImportImageTask, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ImportImageTask::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("architecture") /* Architecture com.amazonaws.ec2#ImportImageTask$Architecture */ => {
let var_2109 =
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_architecture(var_2109);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#ImportImageTask$Description */ => {
let var_2110 =
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_2110);
}
,
s if s.matches("encrypted") /* Encrypted com.amazonaws.ec2#ImportImageTask$Encrypted */ => {
let var_2111 =
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_encrypted(var_2111);
}
,
s if s.matches("hypervisor") /* Hypervisor com.amazonaws.ec2#ImportImageTask$Hypervisor */ => {
let var_2112 =
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_hypervisor(var_2112);
}
,
s if s.matches("imageId") /* ImageId com.amazonaws.ec2#ImportImageTask$ImageId */ => {
let var_2113 =
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_image_id(var_2113);
}
,
s if s.matches("importTaskId") /* ImportTaskId com.amazonaws.ec2#ImportImageTask$ImportTaskId */ => {
let var_2114 =
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_import_task_id(var_2114);
}
,
s if s.matches("kmsKeyId") /* KmsKeyId com.amazonaws.ec2#ImportImageTask$KmsKeyId */ => {
let var_2115 =
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_kms_key_id(var_2115);
}
,
s if s.matches("licenseType") /* LicenseType com.amazonaws.ec2#ImportImageTask$LicenseType */ => {
let var_2116 =
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_type(var_2116);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#ImportImageTask$Platform */ => {
let var_2117 =
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_platform(var_2117);
}
,
s if s.matches("progress") /* Progress com.amazonaws.ec2#ImportImageTask$Progress */ => {
let var_2118 =
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_progress(var_2118);
}
,
s if s.matches("snapshotDetailSet") /* SnapshotDetails com.amazonaws.ec2#ImportImageTask$SnapshotDetails */ => {
let var_2119 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_snapshot_detail_list(&mut tag)
?
)
;
builder = builder.set_snapshot_details(var_2119);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#ImportImageTask$Status */ => {
let var_2120 =
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_status(var_2120);
}
,
s if s.matches("statusMessage") /* StatusMessage com.amazonaws.ec2#ImportImageTask$StatusMessage */ => {
let var_2121 =
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_status_message(var_2121);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#ImportImageTask$Tags */ => {
let var_2122 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2122);
}
,
s if s.matches("licenseSpecifications") /* LicenseSpecifications com.amazonaws.ec2#ImportImageTask$LicenseSpecifications */ => {
let var_2123 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_import_image_license_specification_list_response(&mut tag)
?
)
;
builder = builder.set_license_specifications(var_2123);
}
,
s if s.matches("usageOperation") /* UsageOperation com.amazonaws.ec2#ImportImageTask$UsageOperation */ => {
let var_2124 =
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_usage_operation(var_2124);
}
,
s if s.matches("bootMode") /* BootMode com.amazonaws.ec2#ImportImageTask$BootMode */ => {
let var_2125 =
Some(
Result::<crate::model::BootModeValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BootModeValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_boot_mode(var_2125);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ImportImageTask
impl Clone for ImportImageTask
source§fn clone(&self) -> ImportImageTask
fn clone(&self) -> ImportImageTask
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more