Struct aws_sdk_ec2::model::SnapshotTaskDetail
source · #[non_exhaustive]pub struct SnapshotTaskDetail { /* private fields */ }
Expand description
Details about the import snapshot task.
Implementations§
source§impl SnapshotTaskDetail
impl SnapshotTaskDetail
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the snapshot.
sourcepub fn disk_image_size(&self) -> Option<f64>
pub fn disk_image_size(&self) -> Option<f64>
The size of the disk in the snapshot, in GiB.
sourcepub fn format(&self) -> Option<&str>
pub fn format(&self) -> Option<&str>
The format of the disk image from which the snapshot is created.
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 snapshot.
sourcepub fn progress(&self) -> Option<&str>
pub fn progress(&self) -> Option<&str>
The percentage of completion for the import snapshot task.
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The snapshot ID of the disk being imported.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
A detailed status message for the import snapshot task.
sourcepub fn url(&self) -> Option<&str>
pub fn url(&self) -> Option<&str>
The URL of the disk image from which the snapshot is created.
sourcepub fn user_bucket(&self) -> Option<&UserBucketDetails>
pub fn user_bucket(&self) -> Option<&UserBucketDetails>
The Amazon S3 bucket for the disk image.
source§impl SnapshotTaskDetail
impl SnapshotTaskDetail
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SnapshotTaskDetail
.
Examples found in repository?
src/xml_deser.rs (line 37085)
37081 37082 37083 37084 37085 37086 37087 37088 37089 37090 37091 37092 37093 37094 37095 37096 37097 37098 37099 37100 37101 37102 37103 37104 37105 37106 37107 37108 37109 37110 37111 37112 37113 37114 37115 37116 37117 37118 37119 37120 37121 37122 37123 37124 37125 37126 37127 37128 37129 37130 37131 37132 37133 37134 37135 37136 37137 37138 37139 37140 37141 37142 37143 37144 37145 37146 37147 37148 37149 37150 37151 37152 37153 37154 37155 37156 37157 37158 37159 37160 37161 37162 37163 37164 37165 37166 37167 37168 37169 37170 37171 37172 37173 37174 37175 37176 37177 37178 37179 37180 37181 37182 37183 37184 37185 37186 37187 37188 37189 37190 37191 37192 37193 37194 37195 37196 37197 37198 37199 37200 37201 37202 37203 37204 37205 37206 37207 37208 37209 37210 37211 37212 37213 37214 37215 37216 37217 37218 37219 37220 37221 37222 37223 37224 37225 37226 37227 37228 37229 37230 37231 37232 37233 37234 37235 37236
pub fn deser_structure_crate_model_snapshot_task_detail(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SnapshotTaskDetail, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SnapshotTaskDetail::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("description") /* Description com.amazonaws.ec2#SnapshotTaskDetail$Description */ => {
let var_1544 =
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_1544);
}
,
s if s.matches("diskImageSize") /* DiskImageSize com.amazonaws.ec2#SnapshotTaskDetail$DiskImageSize */ => {
let var_1545 =
Some(
{
<f64 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 (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_disk_image_size(var_1545);
}
,
s if s.matches("encrypted") /* Encrypted com.amazonaws.ec2#SnapshotTaskDetail$Encrypted */ => {
let var_1546 =
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_1546);
}
,
s if s.matches("format") /* Format com.amazonaws.ec2#SnapshotTaskDetail$Format */ => {
let var_1547 =
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_format(var_1547);
}
,
s if s.matches("kmsKeyId") /* KmsKeyId com.amazonaws.ec2#SnapshotTaskDetail$KmsKeyId */ => {
let var_1548 =
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_1548);
}
,
s if s.matches("progress") /* Progress com.amazonaws.ec2#SnapshotTaskDetail$Progress */ => {
let var_1549 =
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_1549);
}
,
s if s.matches("snapshotId") /* SnapshotId com.amazonaws.ec2#SnapshotTaskDetail$SnapshotId */ => {
let var_1550 =
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_snapshot_id(var_1550);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#SnapshotTaskDetail$Status */ => {
let var_1551 =
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_1551);
}
,
s if s.matches("statusMessage") /* StatusMessage com.amazonaws.ec2#SnapshotTaskDetail$StatusMessage */ => {
let var_1552 =
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_1552);
}
,
s if s.matches("url") /* Url com.amazonaws.ec2#SnapshotTaskDetail$Url */ => {
let var_1553 =
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_url(var_1553);
}
,
s if s.matches("userBucket") /* UserBucket com.amazonaws.ec2#SnapshotTaskDetail$UserBucket */ => {
let var_1554 =
Some(
crate::xml_deser::deser_structure_crate_model_user_bucket_details(&mut tag)
?
)
;
builder = builder.set_user_bucket(var_1554);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for SnapshotTaskDetail
impl Clone for SnapshotTaskDetail
source§fn clone(&self) -> SnapshotTaskDetail
fn clone(&self) -> SnapshotTaskDetail
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