Struct aws_sdk_ec2::model::TransitGatewayConnect
source · #[non_exhaustive]pub struct TransitGatewayConnect { /* private fields */ }
Expand description
Describes a transit gateway Connect attachment.
Implementations§
source§impl TransitGatewayConnect
impl TransitGatewayConnect
sourcepub fn transit_gateway_attachment_id(&self) -> Option<&str>
pub fn transit_gateway_attachment_id(&self) -> Option<&str>
The ID of the Connect attachment.
sourcepub fn transport_transit_gateway_attachment_id(&self) -> Option<&str>
pub fn transport_transit_gateway_attachment_id(&self) -> Option<&str>
The ID of the attachment from which the Connect attachment was created.
sourcepub fn transit_gateway_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
The ID of the transit gateway.
sourcepub fn state(&self) -> Option<&TransitGatewayAttachmentState>
pub fn state(&self) -> Option<&TransitGatewayAttachmentState>
The state of the attachment.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The creation time.
sourcepub fn options(&self) -> Option<&TransitGatewayConnectOptions>
pub fn options(&self) -> Option<&TransitGatewayConnectOptions>
The Connect attachment options.
The tags for the attachment.
source§impl TransitGatewayConnect
impl TransitGatewayConnect
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TransitGatewayConnect
.
Examples found in repository?
src/xml_deser.rs (line 30704)
30700 30701 30702 30703 30704 30705 30706 30707 30708 30709 30710 30711 30712 30713 30714 30715 30716 30717 30718 30719 30720 30721 30722 30723 30724 30725 30726 30727 30728 30729 30730 30731 30732 30733 30734 30735 30736 30737 30738 30739 30740 30741 30742 30743 30744 30745 30746 30747 30748 30749 30750 30751 30752 30753 30754 30755 30756 30757 30758 30759 30760 30761 30762 30763 30764 30765 30766 30767 30768 30769 30770 30771 30772 30773 30774 30775 30776 30777 30778 30779 30780 30781 30782 30783 30784 30785 30786 30787 30788 30789 30790 30791 30792 30793 30794 30795 30796 30797 30798
pub fn deser_structure_crate_model_transit_gateway_connect(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TransitGatewayConnect, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TransitGatewayConnect::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("transitGatewayAttachmentId") /* TransitGatewayAttachmentId com.amazonaws.ec2#TransitGatewayConnect$TransitGatewayAttachmentId */ => {
let var_1339 =
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_transit_gateway_attachment_id(var_1339);
}
,
s if s.matches("transportTransitGatewayAttachmentId") /* TransportTransitGatewayAttachmentId com.amazonaws.ec2#TransitGatewayConnect$TransportTransitGatewayAttachmentId */ => {
let var_1340 =
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_transport_transit_gateway_attachment_id(var_1340);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#TransitGatewayConnect$TransitGatewayId */ => {
let var_1341 =
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_transit_gateway_id(var_1341);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#TransitGatewayConnect$State */ => {
let var_1342 =
Some(
Result::<crate::model::TransitGatewayAttachmentState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TransitGatewayAttachmentState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1342);
}
,
s if s.matches("creationTime") /* CreationTime com.amazonaws.ec2#TransitGatewayConnect$CreationTime */ => {
let var_1343 =
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_creation_time(var_1343);
}
,
s if s.matches("options") /* Options com.amazonaws.ec2#TransitGatewayConnect$Options */ => {
let var_1344 =
Some(
crate::xml_deser::deser_structure_crate_model_transit_gateway_connect_options(&mut tag)
?
)
;
builder = builder.set_options(var_1344);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#TransitGatewayConnect$Tags */ => {
let var_1345 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1345);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TransitGatewayConnect
impl Clone for TransitGatewayConnect
source§fn clone(&self) -> TransitGatewayConnect
fn clone(&self) -> TransitGatewayConnect
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