Struct aws_sdk_ec2::model::TargetReservationValue
source · #[non_exhaustive]pub struct TargetReservationValue { /* private fields */ }
Expand description
The total value of the new Convertible Reserved Instances.
Implementations§
source§impl TargetReservationValue
impl TargetReservationValue
sourcepub fn reservation_value(&self) -> Option<&ReservationValue>
pub fn reservation_value(&self) -> Option<&ReservationValue>
The total value of the Convertible Reserved Instances that make up the exchange. This is the sum of the list value, remaining upfront price, and additional upfront cost of the exchange.
sourcepub fn target_configuration(&self) -> Option<&TargetConfiguration>
pub fn target_configuration(&self) -> Option<&TargetConfiguration>
The configuration of the Convertible Reserved Instances that make up the exchange.
source§impl TargetReservationValue
impl TargetReservationValue
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TargetReservationValue
.
Examples found in repository?
src/xml_deser.rs (line 53746)
53742 53743 53744 53745 53746 53747 53748 53749 53750 53751 53752 53753 53754 53755 53756 53757 53758 53759 53760 53761 53762 53763 53764 53765 53766 53767 53768 53769 53770 53771 53772 53773
pub fn deser_structure_crate_model_target_reservation_value(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TargetReservationValue, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TargetReservationValue::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("reservationValue") /* ReservationValue com.amazonaws.ec2#TargetReservationValue$ReservationValue */ => {
let var_2574 =
Some(
crate::xml_deser::deser_structure_crate_model_reservation_value(&mut tag)
?
)
;
builder = builder.set_reservation_value(var_2574);
}
,
s if s.matches("targetConfiguration") /* TargetConfiguration com.amazonaws.ec2#TargetReservationValue$TargetConfiguration */ => {
let var_2575 =
Some(
crate::xml_deser::deser_structure_crate_model_target_configuration(&mut tag)
?
)
;
builder = builder.set_target_configuration(var_2575);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TargetReservationValue
impl Clone for TargetReservationValue
source§fn clone(&self) -> TargetReservationValue
fn clone(&self) -> TargetReservationValue
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