#[non_exhaustive]pub struct TransitGatewayPolicyTableAssociation { /* private fields */ }
Expand description
Describes a transit gateway policy table association.
Implementations§
source§impl TransitGatewayPolicyTableAssociation
impl TransitGatewayPolicyTableAssociation
sourcepub fn transit_gateway_policy_table_id(&self) -> Option<&str>
pub fn transit_gateway_policy_table_id(&self) -> Option<&str>
The ID of the transit gateway policy table.
sourcepub fn transit_gateway_attachment_id(&self) -> Option<&str>
pub fn transit_gateway_attachment_id(&self) -> Option<&str>
The ID of the transit gateway attachment.
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
The resource ID of the transit gateway attachment.
sourcepub fn resource_type(&self) -> Option<&TransitGatewayAttachmentResourceType>
pub fn resource_type(&self) -> Option<&TransitGatewayAttachmentResourceType>
The resource type for the transit gateway policy table association.
sourcepub fn state(&self) -> Option<&TransitGatewayAssociationState>
pub fn state(&self) -> Option<&TransitGatewayAssociationState>
The state of the transit gateway policy table association.
source§impl TransitGatewayPolicyTableAssociation
impl TransitGatewayPolicyTableAssociation
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TransitGatewayPolicyTableAssociation
.
Examples found in repository?
src/xml_deser.rs (line 24877)
24870 24871 24872 24873 24874 24875 24876 24877 24878 24879 24880 24881 24882 24883 24884 24885 24886 24887 24888 24889 24890 24891 24892 24893 24894 24895 24896 24897 24898 24899 24900 24901 24902 24903 24904 24905 24906 24907 24908 24909 24910 24911 24912 24913 24914 24915 24916 24917 24918 24919 24920 24921 24922 24923 24924 24925 24926 24927 24928 24929 24930 24931 24932 24933 24934 24935 24936 24937 24938 24939 24940 24941 24942 24943 24944 24945 24946 24947 24948 24949 24950 24951
pub fn deser_structure_crate_model_transit_gateway_policy_table_association(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::TransitGatewayPolicyTableAssociation,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::TransitGatewayPolicyTableAssociation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("transitGatewayPolicyTableId") /* TransitGatewayPolicyTableId com.amazonaws.ec2#TransitGatewayPolicyTableAssociation$TransitGatewayPolicyTableId */ => {
let var_955 =
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_policy_table_id(var_955);
}
,
s if s.matches("transitGatewayAttachmentId") /* TransitGatewayAttachmentId com.amazonaws.ec2#TransitGatewayPolicyTableAssociation$TransitGatewayAttachmentId */ => {
let var_956 =
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_956);
}
,
s if s.matches("resourceId") /* ResourceId com.amazonaws.ec2#TransitGatewayPolicyTableAssociation$ResourceId */ => {
let var_957 =
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_resource_id(var_957);
}
,
s if s.matches("resourceType") /* ResourceType com.amazonaws.ec2#TransitGatewayPolicyTableAssociation$ResourceType */ => {
let var_958 =
Some(
Result::<crate::model::TransitGatewayAttachmentResourceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TransitGatewayAttachmentResourceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_resource_type(var_958);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#TransitGatewayPolicyTableAssociation$State */ => {
let var_959 =
Some(
Result::<crate::model::TransitGatewayAssociationState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TransitGatewayAssociationState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_959);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TransitGatewayPolicyTableAssociation
impl Clone for TransitGatewayPolicyTableAssociation
source§fn clone(&self) -> TransitGatewayPolicyTableAssociation
fn clone(&self) -> TransitGatewayPolicyTableAssociation
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