Struct aws_sdk_ec2::model::SpotDatafeedSubscription
source · #[non_exhaustive]pub struct SpotDatafeedSubscription { /* private fields */ }
Expand description
Describes the data feed for a Spot Instance.
Implementations§
source§impl SpotDatafeedSubscription
impl SpotDatafeedSubscription
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The name of the Amazon S3 bucket where the Spot Instance data feed is located.
sourcepub fn fault(&self) -> Option<&SpotInstanceStateFault>
pub fn fault(&self) -> Option<&SpotInstanceStateFault>
The fault codes for the Spot Instance request, if any.
sourcepub fn state(&self) -> Option<&DatafeedSubscriptionState>
pub fn state(&self) -> Option<&DatafeedSubscriptionState>
The state of the Spot Instance data feed subscription.
source§impl SpotDatafeedSubscription
impl SpotDatafeedSubscription
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SpotDatafeedSubscription
.
Examples found in repository?
src/xml_deser.rs (line 29917)
29913 29914 29915 29916 29917 29918 29919 29920 29921 29922 29923 29924 29925 29926 29927 29928 29929 29930 29931 29932 29933 29934 29935 29936 29937 29938 29939 29940 29941 29942 29943 29944 29945 29946 29947 29948 29949 29950 29951 29952 29953 29954 29955 29956 29957 29958 29959 29960 29961 29962 29963 29964 29965 29966 29967 29968 29969 29970 29971 29972 29973 29974 29975 29976 29977 29978 29979 29980 29981 29982 29983 29984 29985 29986 29987
pub fn deser_structure_crate_model_spot_datafeed_subscription(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SpotDatafeedSubscription, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SpotDatafeedSubscription::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("bucket") /* Bucket com.amazonaws.ec2#SpotDatafeedSubscription$Bucket */ => {
let var_1284 =
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_bucket(var_1284);
}
,
s if s.matches("fault") /* Fault com.amazonaws.ec2#SpotDatafeedSubscription$Fault */ => {
let var_1285 =
Some(
crate::xml_deser::deser_structure_crate_model_spot_instance_state_fault(&mut tag)
?
)
;
builder = builder.set_fault(var_1285);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#SpotDatafeedSubscription$OwnerId */ => {
let var_1286 =
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_owner_id(var_1286);
}
,
s if s.matches("prefix") /* Prefix com.amazonaws.ec2#SpotDatafeedSubscription$Prefix */ => {
let var_1287 =
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_prefix(var_1287);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#SpotDatafeedSubscription$State */ => {
let var_1288 =
Some(
Result::<crate::model::DatafeedSubscriptionState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::DatafeedSubscriptionState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1288);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for SpotDatafeedSubscription
impl Clone for SpotDatafeedSubscription
source§fn clone(&self) -> SpotDatafeedSubscription
fn clone(&self) -> SpotDatafeedSubscription
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