Struct aws_sdk_ec2::model::CarrierGateway
source · #[non_exhaustive]pub struct CarrierGateway { /* private fields */ }
Expand description
Describes a carrier gateway.
Implementations§
source§impl CarrierGateway
impl CarrierGateway
sourcepub fn carrier_gateway_id(&self) -> Option<&str>
pub fn carrier_gateway_id(&self) -> Option<&str>
The ID of the carrier gateway.
sourcepub fn state(&self) -> Option<&CarrierGatewayState>
pub fn state(&self) -> Option<&CarrierGatewayState>
The state of the carrier gateway.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The Amazon Web Services account ID of the owner of the carrier gateway.
The tags assigned to the carrier gateway.
source§impl CarrierGateway
impl CarrierGateway
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CarrierGateway
.
Examples found in repository?
src/xml_deser.rs (line 25977)
25973 25974 25975 25976 25977 25978 25979 25980 25981 25982 25983 25984 25985 25986 25987 25988 25989 25990 25991 25992 25993 25994 25995 25996 25997 25998 25999 26000 26001 26002 26003 26004 26005 26006 26007 26008 26009 26010 26011 26012 26013 26014 26015 26016 26017 26018 26019 26020 26021 26022 26023 26024 26025 26026 26027 26028 26029 26030 26031 26032 26033 26034 26035 26036 26037 26038 26039 26040 26041 26042 26043 26044 26045 26046 26047
pub fn deser_structure_crate_model_carrier_gateway(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CarrierGateway, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CarrierGateway::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("carrierGatewayId") /* CarrierGatewayId com.amazonaws.ec2#CarrierGateway$CarrierGatewayId */ => {
let var_1015 =
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_carrier_gateway_id(var_1015);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#CarrierGateway$VpcId */ => {
let var_1016 =
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_vpc_id(var_1016);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#CarrierGateway$State */ => {
let var_1017 =
Some(
Result::<crate::model::CarrierGatewayState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::CarrierGatewayState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1017);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#CarrierGateway$OwnerId */ => {
let var_1018 =
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_1018);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#CarrierGateway$Tags */ => {
let var_1019 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1019);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for CarrierGateway
impl Clone for CarrierGateway
source§fn clone(&self) -> CarrierGateway
fn clone(&self) -> CarrierGateway
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