Struct aws_sdk_ec2::model::TransitGatewayConnectPeer
source · #[non_exhaustive]pub struct TransitGatewayConnectPeer { /* private fields */ }
Expand description
Describes a transit gateway Connect peer.
Implementations§
source§impl TransitGatewayConnectPeer
impl TransitGatewayConnectPeer
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 transit_gateway_connect_peer_id(&self) -> Option<&str>
pub fn transit_gateway_connect_peer_id(&self) -> Option<&str>
The ID of the Connect peer.
sourcepub fn state(&self) -> Option<&TransitGatewayConnectPeerState>
pub fn state(&self) -> Option<&TransitGatewayConnectPeerState>
The state of the Connect peer.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The creation time.
sourcepub fn connect_peer_configuration(
&self
) -> Option<&TransitGatewayConnectPeerConfiguration>
pub fn connect_peer_configuration(
&self
) -> Option<&TransitGatewayConnectPeerConfiguration>
The Connect peer details.
The tags for the Connect peer.
source§impl TransitGatewayConnectPeer
impl TransitGatewayConnectPeer
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TransitGatewayConnectPeer
.
Examples found in repository?
src/xml_deser.rs (line 30804)
30800 30801 30802 30803 30804 30805 30806 30807 30808 30809 30810 30811 30812 30813 30814 30815 30816 30817 30818 30819 30820 30821 30822 30823 30824 30825 30826 30827 30828 30829 30830 30831 30832 30833 30834 30835 30836 30837 30838 30839 30840 30841 30842 30843 30844 30845 30846 30847 30848 30849 30850 30851 30852 30853 30854 30855 30856 30857 30858 30859 30860 30861 30862 30863 30864 30865 30866 30867 30868 30869 30870 30871 30872 30873 30874 30875 30876 30877 30878 30879 30880 30881 30882 30883 30884 30885
pub fn deser_structure_crate_model_transit_gateway_connect_peer(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TransitGatewayConnectPeer, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TransitGatewayConnectPeer::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("transitGatewayAttachmentId") /* TransitGatewayAttachmentId com.amazonaws.ec2#TransitGatewayConnectPeer$TransitGatewayAttachmentId */ => {
let var_1346 =
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_1346);
}
,
s if s.matches("transitGatewayConnectPeerId") /* TransitGatewayConnectPeerId com.amazonaws.ec2#TransitGatewayConnectPeer$TransitGatewayConnectPeerId */ => {
let var_1347 =
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_connect_peer_id(var_1347);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#TransitGatewayConnectPeer$State */ => {
let var_1348 =
Some(
Result::<crate::model::TransitGatewayConnectPeerState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TransitGatewayConnectPeerState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1348);
}
,
s if s.matches("creationTime") /* CreationTime com.amazonaws.ec2#TransitGatewayConnectPeer$CreationTime */ => {
let var_1349 =
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_1349);
}
,
s if s.matches("connectPeerConfiguration") /* ConnectPeerConfiguration com.amazonaws.ec2#TransitGatewayConnectPeer$ConnectPeerConfiguration */ => {
let var_1350 =
Some(
crate::xml_deser::deser_structure_crate_model_transit_gateway_connect_peer_configuration(&mut tag)
?
)
;
builder = builder.set_connect_peer_configuration(var_1350);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#TransitGatewayConnectPeer$Tags */ => {
let var_1351 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1351);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TransitGatewayConnectPeer
impl Clone for TransitGatewayConnectPeer
source§fn clone(&self) -> TransitGatewayConnectPeer
fn clone(&self) -> TransitGatewayConnectPeer
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