Struct aws_sdk_ec2::model::TransitGatewayPolicyTable
source · #[non_exhaustive]pub struct TransitGatewayPolicyTable { /* private fields */ }
Expand description
Describes a transit gateway policy table.
Implementations§
source§impl TransitGatewayPolicyTable
impl TransitGatewayPolicyTable
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_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
The ID of the transit gateway.
sourcepub fn state(&self) -> Option<&TransitGatewayPolicyTableState>
pub fn state(&self) -> Option<&TransitGatewayPolicyTableState>
The state of the transit gateway policy table
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The timestamp when the transit gateway policy table was created.
he key-value pairs associated with the transit gateway policy table.
source§impl TransitGatewayPolicyTable
impl TransitGatewayPolicyTable
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TransitGatewayPolicyTable
.
Examples found in repository?
src/xml_deser.rs (line 31004)
31000 31001 31002 31003 31004 31005 31006 31007 31008 31009 31010 31011 31012 31013 31014 31015 31016 31017 31018 31019 31020 31021 31022 31023 31024 31025 31026 31027 31028 31029 31030 31031 31032 31033 31034 31035 31036 31037 31038 31039 31040 31041 31042 31043 31044 31045 31046 31047 31048 31049 31050 31051 31052 31053 31054 31055 31056 31057 31058 31059 31060 31061 31062 31063 31064 31065 31066 31067 31068 31069 31070 31071 31072 31073 31074 31075
pub fn deser_structure_crate_model_transit_gateway_policy_table(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TransitGatewayPolicyTable, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TransitGatewayPolicyTable::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("transitGatewayPolicyTableId") /* TransitGatewayPolicyTableId com.amazonaws.ec2#TransitGatewayPolicyTable$TransitGatewayPolicyTableId */ => {
let var_1360 =
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_1360);
}
,
s if s.matches("transitGatewayId") /* TransitGatewayId com.amazonaws.ec2#TransitGatewayPolicyTable$TransitGatewayId */ => {
let var_1361 =
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_1361);
}
,
s if s.matches("state") /* State com.amazonaws.ec2#TransitGatewayPolicyTable$State */ => {
let var_1362 =
Some(
Result::<crate::model::TransitGatewayPolicyTableState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::TransitGatewayPolicyTableState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_state(var_1362);
}
,
s if s.matches("creationTime") /* CreationTime com.amazonaws.ec2#TransitGatewayPolicyTable$CreationTime */ => {
let var_1363 =
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_1363);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#TransitGatewayPolicyTable$Tags */ => {
let var_1364 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_1364);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TransitGatewayPolicyTable
impl Clone for TransitGatewayPolicyTable
source§fn clone(&self) -> TransitGatewayPolicyTable
fn clone(&self) -> TransitGatewayPolicyTable
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