Struct aws_sdk_ec2::model::ReservedInstancesModification
source · #[non_exhaustive]pub struct ReservedInstancesModification { /* private fields */ }
Expand description
Describes a Reserved Instance modification.
Implementations§
source§impl ReservedInstancesModification
impl ReservedInstancesModification
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
sourcepub fn create_date(&self) -> Option<&DateTime>
pub fn create_date(&self) -> Option<&DateTime>
The time when the modification request was created.
sourcepub fn effective_date(&self) -> Option<&DateTime>
pub fn effective_date(&self) -> Option<&DateTime>
The time for the modification to become effective.
sourcepub fn modification_results(
&self
) -> Option<&[ReservedInstancesModificationResult]>
pub fn modification_results(
&self
) -> Option<&[ReservedInstancesModificationResult]>
Contains target configurations along with their corresponding new Reserved Instance IDs.
sourcepub fn reserved_instances_ids(&self) -> Option<&[ReservedInstancesId]>
pub fn reserved_instances_ids(&self) -> Option<&[ReservedInstancesId]>
The IDs of one or more Reserved Instances.
sourcepub fn reserved_instances_modification_id(&self) -> Option<&str>
pub fn reserved_instances_modification_id(&self) -> Option<&str>
A unique ID for the Reserved Instance modification.
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
The status of the Reserved Instances modification request.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
The reason for the status.
sourcepub fn update_date(&self) -> Option<&DateTime>
pub fn update_date(&self) -> Option<&DateTime>
The time when the modification request was last updated.
source§impl ReservedInstancesModification
impl ReservedInstancesModification
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ReservedInstancesModification
.
Examples found in repository?
src/xml_deser.rs (line 48569)
48565 48566 48567 48568 48569 48570 48571 48572 48573 48574 48575 48576 48577 48578 48579 48580 48581 48582 48583 48584 48585 48586 48587 48588 48589 48590 48591 48592 48593 48594 48595 48596 48597 48598 48599 48600 48601 48602 48603 48604 48605 48606 48607 48608 48609 48610 48611 48612 48613 48614 48615 48616 48617 48618 48619 48620 48621 48622 48623 48624 48625 48626 48627 48628 48629 48630 48631 48632 48633 48634 48635 48636 48637 48638 48639 48640 48641 48642 48643 48644 48645 48646 48647 48648 48649 48650 48651 48652 48653 48654 48655 48656 48657 48658 48659 48660 48661 48662 48663 48664 48665 48666 48667 48668 48669 48670 48671 48672 48673 48674 48675 48676 48677 48678 48679 48680 48681 48682 48683 48684 48685 48686 48687 48688 48689 48690
pub fn deser_structure_crate_model_reserved_instances_modification(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ReservedInstancesModification, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ReservedInstancesModification::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#ReservedInstancesModification$ClientToken */ => {
let var_2240 =
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_client_token(var_2240);
}
,
s if s.matches("createDate") /* CreateDate com.amazonaws.ec2#ReservedInstancesModification$CreateDate */ => {
let var_2241 =
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_date(var_2241);
}
,
s if s.matches("effectiveDate") /* EffectiveDate com.amazonaws.ec2#ReservedInstancesModification$EffectiveDate */ => {
let var_2242 =
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_effective_date(var_2242);
}
,
s if s.matches("modificationResultSet") /* ModificationResults com.amazonaws.ec2#ReservedInstancesModification$ModificationResults */ => {
let var_2243 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_reserved_instances_modification_result_list(&mut tag)
?
)
;
builder = builder.set_modification_results(var_2243);
}
,
s if s.matches("reservedInstancesSet") /* ReservedInstancesIds com.amazonaws.ec2#ReservedInstancesModification$ReservedInstancesIds */ => {
let var_2244 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_reserved_intances_ids(&mut tag)
?
)
;
builder = builder.set_reserved_instances_ids(var_2244);
}
,
s if s.matches("reservedInstancesModificationId") /* ReservedInstancesModificationId com.amazonaws.ec2#ReservedInstancesModification$ReservedInstancesModificationId */ => {
let var_2245 =
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_reserved_instances_modification_id(var_2245);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#ReservedInstancesModification$Status */ => {
let var_2246 =
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_2246);
}
,
s if s.matches("statusMessage") /* StatusMessage com.amazonaws.ec2#ReservedInstancesModification$StatusMessage */ => {
let var_2247 =
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_2247);
}
,
s if s.matches("updateDate") /* UpdateDate com.amazonaws.ec2#ReservedInstancesModification$UpdateDate */ => {
let var_2248 =
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_update_date(var_2248);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ReservedInstancesModification
impl Clone for ReservedInstancesModification
source§fn clone(&self) -> ReservedInstancesModification
fn clone(&self) -> ReservedInstancesModification
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