Struct aws_sdk_ec2::model::ReservedInstancesListing
source · #[non_exhaustive]pub struct ReservedInstancesListing { /* private fields */ }
Expand description
Describes a Reserved Instance listing.
Implementations§
source§impl ReservedInstancesListing
impl ReservedInstancesListing
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 the listing was created.
sourcepub fn instance_counts(&self) -> Option<&[InstanceCount]>
pub fn instance_counts(&self) -> Option<&[InstanceCount]>
The number of instances in this state.
sourcepub fn price_schedules(&self) -> Option<&[PriceSchedule]>
pub fn price_schedules(&self) -> Option<&[PriceSchedule]>
The price of the Reserved Instance listing.
sourcepub fn reserved_instances_id(&self) -> Option<&str>
pub fn reserved_instances_id(&self) -> Option<&str>
The ID of the Reserved Instance.
sourcepub fn reserved_instances_listing_id(&self) -> Option<&str>
pub fn reserved_instances_listing_id(&self) -> Option<&str>
The ID of the Reserved Instance listing.
sourcepub fn status(&self) -> Option<&ListingStatus>
pub fn status(&self) -> Option<&ListingStatus>
The status of the Reserved Instance listing.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
The reason for the current status of the Reserved Instance listing. The response can be blank.
Any tags assigned to the resource.
sourcepub fn update_date(&self) -> Option<&DateTime>
pub fn update_date(&self) -> Option<&DateTime>
The last modified timestamp of the listing.
source§impl ReservedInstancesListing
impl ReservedInstancesListing
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ReservedInstancesListing
.
Examples found in repository?
src/xml_deser.rs (line 39812)
39808 39809 39810 39811 39812 39813 39814 39815 39816 39817 39818 39819 39820 39821 39822 39823 39824 39825 39826 39827 39828 39829 39830 39831 39832 39833 39834 39835 39836 39837 39838 39839 39840 39841 39842 39843 39844 39845 39846 39847 39848 39849 39850 39851 39852 39853 39854 39855 39856 39857 39858 39859 39860 39861 39862 39863 39864 39865 39866 39867 39868 39869 39870 39871 39872 39873 39874 39875 39876 39877 39878 39879 39880 39881 39882 39883 39884 39885 39886 39887 39888 39889 39890 39891 39892 39893 39894 39895 39896 39897 39898 39899 39900 39901 39902 39903 39904 39905 39906 39907 39908 39909 39910 39911 39912 39913 39914 39915 39916 39917 39918 39919 39920 39921 39922 39923 39924 39925 39926 39927 39928 39929 39930 39931 39932 39933 39934 39935 39936 39937 39938 39939 39940 39941 39942 39943
pub fn deser_structure_crate_model_reserved_instances_listing(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ReservedInstancesListing, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ReservedInstancesListing::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("clientToken") /* ClientToken com.amazonaws.ec2#ReservedInstancesListing$ClientToken */ => {
let var_1693 =
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_1693);
}
,
s if s.matches("createDate") /* CreateDate com.amazonaws.ec2#ReservedInstancesListing$CreateDate */ => {
let var_1694 =
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_1694);
}
,
s if s.matches("instanceCounts") /* InstanceCounts com.amazonaws.ec2#ReservedInstancesListing$InstanceCounts */ => {
let var_1695 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_count_list(&mut tag)
?
)
;
builder = builder.set_instance_counts(var_1695);
}
,
s if s.matches("priceSchedules") /* PriceSchedules com.amazonaws.ec2#ReservedInstancesListing$PriceSchedules */ => {
let var_1696 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_price_schedule_list(&mut tag)
?
)
;
builder = builder.set_price_schedules(var_1696);
}
,
s if s.matches("reservedInstancesId") /* ReservedInstancesId com.amazonaws.ec2#ReservedInstancesListing$ReservedInstancesId */ => {
let var_1697 =
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_id(var_1697);
}
,
s if s.matches("reservedInstancesListingId") /* ReservedInstancesListingId com.amazonaws.ec2#ReservedInstancesListing$ReservedInstancesListingId */ => {
let var_1698 =
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_listing_id(var_1698);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#ReservedInstancesListing$Status */ => {
let var_1699 =
Some(
Result::<crate::model::ListingStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ListingStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_1699);
}
,
s if s.matches("statusMessage") /* StatusMessage com.amazonaws.ec2#ReservedInstancesListing$StatusMessage */ => {
let var_1700 =
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_1700);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#ReservedInstancesListing$Tags */ => {
let var_1701 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1701);
}
,
s if s.matches("updateDate") /* UpdateDate com.amazonaws.ec2#ReservedInstancesListing$UpdateDate */ => {
let var_1702 =
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_1702);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ReservedInstancesListing
impl Clone for ReservedInstancesListing
source§fn clone(&self) -> ReservedInstancesListing
fn clone(&self) -> ReservedInstancesListing
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