#[non_exhaustive]pub struct TransitGatewayPrefixListReference { /* private fields */ }
Expand description
Describes a prefix list reference.
Implementations§
source§impl TransitGatewayPrefixListReference
impl TransitGatewayPrefixListReference
sourcepub fn transit_gateway_route_table_id(&self) -> Option<&str>
pub fn transit_gateway_route_table_id(&self) -> Option<&str>
The ID of the transit gateway route table.
sourcepub fn prefix_list_id(&self) -> Option<&str>
pub fn prefix_list_id(&self) -> Option<&str>
The ID of the prefix list.
sourcepub fn prefix_list_owner_id(&self) -> Option<&str>
pub fn prefix_list_owner_id(&self) -> Option<&str>
The ID of the prefix list owner.
sourcepub fn state(&self) -> Option<&TransitGatewayPrefixListReferenceState>
pub fn state(&self) -> Option<&TransitGatewayPrefixListReferenceState>
The state of the prefix list reference.
sourcepub fn blackhole(&self) -> Option<bool>
pub fn blackhole(&self) -> Option<bool>
Indicates whether traffic that matches this route is dropped.
sourcepub fn transit_gateway_attachment(
&self
) -> Option<&TransitGatewayPrefixListAttachment>
pub fn transit_gateway_attachment(
&self
) -> Option<&TransitGatewayPrefixListAttachment>
Information about the transit gateway attachment.
source§impl TransitGatewayPrefixListReference
impl TransitGatewayPrefixListReference
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TransitGatewayPrefixListReference
.
Examples found in repository?
src/xml_deser.rs (line 31082)
31077 31078 31079 31080 31081 31082 31083 31084 31085 31086 31087 31088 31089 31090 31091 31092 31093 31094 31095 31096 31097 31098 31099 31100 31101 31102 31103 31104 31105 31106 31107 31108 31109 31110 31111 31112 31113 31114 31115 31116 31117 31118 31119 31120 31121 31122 31123 31124 31125 31126 31127 31128 31129 31130 31131 31132 31133 31134 31135 31136 31137 31138 31139 31140 31141 31142 31143 31144 31145 31146 31147 31148 31149 31150 31151 31152 31153 31154 31155 31156 31157 31158 31159 31160 31161 31162 31163 31164 31165 31166 31167
pub fn deser_structure_crate_model_transit_gateway_prefix_list_reference(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TransitGatewayPrefixListReference, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::TransitGatewayPrefixListReference::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("transitGatewayRouteTableId") /* TransitGatewayRouteTableId com.amazonaws.ec2#TransitGatewayPrefixListReference$TransitGatewayRouteTableId */ => {
let var_1365 =
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_route_table_id(var_1365);
}
,
s if s.matches("prefixListId") /* PrefixListId com.amazonaws.ec2#TransitGatewayPrefixListReference$PrefixListId */ => {
let var_1366 =
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_prefix_list_id(var_1366);
}
,
s if s.matches("prefixListOwnerId") /* PrefixListOwnerId com.amazonaws.ec2#TransitGatewayPrefixListReference$PrefixListOwnerId */ => {
let var_1367 =
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_prefix_list_owner_id(var_1367);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#TransitGatewayPrefixListReference$State */ => {
let var_1368 =
Some(
Result::<crate::model::TransitGatewayPrefixListReferenceState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TransitGatewayPrefixListReferenceState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1368);
}
,
s if s.matches("blackhole") /* Blackhole com.amazonaws.ec2#TransitGatewayPrefixListReference$Blackhole */ => {
let var_1369 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.ec2#Boolean`)"))
}
?
)
;
builder = builder.set_blackhole(var_1369);
}
,
s if s.matches("transitGatewayAttachment") /* TransitGatewayAttachment com.amazonaws.ec2#TransitGatewayPrefixListReference$TransitGatewayAttachment */ => {
let var_1370 =
Some(
crate::xml_deser::deser_structure_crate_model_transit_gateway_prefix_list_attachment(&mut tag)
?
)
;
builder = builder.set_transit_gateway_attachment(var_1370);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TransitGatewayPrefixListReference
impl Clone for TransitGatewayPrefixListReference
source§fn clone(&self) -> TransitGatewayPrefixListReference
fn clone(&self) -> TransitGatewayPrefixListReference
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