Struct aws_sdk_ec2::model::carrier_gateway::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CarrierGateway
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn carrier_gateway_id(self, input: impl Into<String>) -> Self
pub fn carrier_gateway_id(self, input: impl Into<String>) -> Self
The ID of the carrier gateway.
sourcepub fn set_carrier_gateway_id(self, input: Option<String>) -> Self
pub fn set_carrier_gateway_id(self, input: Option<String>) -> Self
The ID of the carrier gateway.
Examples found in repository?
src/xml_deser.rs (line 25990)
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())
}
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The ID of the VPC associated with the carrier gateway.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of the VPC associated with the carrier gateway.
Examples found in repository?
src/xml_deser.rs (line 26003)
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())
}
sourcepub fn state(self, input: CarrierGatewayState) -> Self
pub fn state(self, input: CarrierGatewayState) -> Self
The state of the carrier gateway.
sourcepub fn set_state(self, input: Option<CarrierGatewayState>) -> Self
pub fn set_state(self, input: Option<CarrierGatewayState>) -> Self
The state of the carrier gateway.
Examples found in repository?
src/xml_deser.rs (line 26017)
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())
}
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the owner of the carrier gateway.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the owner of the carrier gateway.
Examples found in repository?
src/xml_deser.rs (line 26030)
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())
}
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags assigned to the carrier gateway.
The tags assigned to the carrier gateway.
Examples found in repository?
src/xml_deser.rs (line 26040)
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())
}
sourcepub fn build(self) -> CarrierGateway
pub fn build(self) -> CarrierGateway
Consumes the builder and constructs a CarrierGateway
.
Examples found in repository?
src/xml_deser.rs (line 26046)
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())
}