9 9 | pub destination_cidr_block: ::std::option::Option<::std::string::String>,
|
10 10 | /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
|
11 11 | pub dry_run: ::std::option::Option<bool>,
|
12 12 | }
|
13 13 | impl DeleteTransitGatewayRouteInput {
|
14 14 | /// <p>The ID of the transit gateway route table.</p>
|
15 15 | pub fn transit_gateway_route_table_id(&self) -> ::std::option::Option<&str> {
|
16 16 | self.transit_gateway_route_table_id.as_deref()
|
17 17 | }
|
18 18 | /// <p>The CIDR range for the route. This must match the CIDR for the route exactly.</p>
|
19 19 | pub fn destination_cidr_block(&self) -> ::std::option::Option<&str> {
|
20 20 | self.destination_cidr_block.as_deref()
|
21 21 | }
|
22 22 | /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
|
23 23 | pub fn dry_run(&self) -> ::std::option::Option<bool> {
|
24 24 | self.dry_run
|
25 25 | }
|
26 26 | }
|
27 27 | static DELETETRANSITGATEWAYROUTEINPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
|
28 28 | "com.amazonaws.ec2.synthetic#DeleteTransitGatewayRouteInput",
|
29 29 | "com.amazonaws.ec2.synthetic",
|
30 30 | "DeleteTransitGatewayRouteInput",
|
31 31 | );
|
32 32 | static DELETETRANSITGATEWAYROUTEINPUT_MEMBER_TRANSIT_GATEWAY_ROUTE_TABLE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
33 33 | ::aws_smithy_schema::ShapeId::from_static(
|
34 34 | "com.amazonaws.ec2.synthetic#DeleteTransitGatewayRouteInput$TransitGatewayRouteTableId",
|
35 35 | "com.amazonaws.ec2.synthetic",
|
36 36 | "DeleteTransitGatewayRouteInput",
|
37 37 | ),
|
38 38 | ::aws_smithy_schema::ShapeType::String,
|
39 - | "transit_gateway_route_table_id",
|
39 + | "TransitGatewayRouteTableId",
|
40 40 | 0,
|
41 41 | );
|
42 42 | static DELETETRANSITGATEWAYROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
43 43 | ::aws_smithy_schema::ShapeId::from_static(
|
44 44 | "com.amazonaws.ec2.synthetic#DeleteTransitGatewayRouteInput$DestinationCidrBlock",
|
45 45 | "com.amazonaws.ec2.synthetic",
|
46 46 | "DeleteTransitGatewayRouteInput",
|
47 47 | ),
|
48 48 | ::aws_smithy_schema::ShapeType::String,
|
49 - | "destination_cidr_block",
|
49 + | "DestinationCidrBlock",
|
50 50 | 1,
|
51 51 | );
|
52 52 | static DELETETRANSITGATEWAYROUTEINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
53 53 | ::aws_smithy_schema::ShapeId::from_static(
|
54 54 | "com.amazonaws.ec2.synthetic#DeleteTransitGatewayRouteInput$DryRun",
|
55 55 | "com.amazonaws.ec2.synthetic",
|
56 56 | "DeleteTransitGatewayRouteInput",
|
57 57 | ),
|
58 58 | ::aws_smithy_schema::ShapeType::Boolean,
|
59 - | "dry_run",
|
59 + | "DryRun",
|
60 60 | 2,
|
61 61 | );
|
62 62 | static DELETETRANSITGATEWAYROUTEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
63 63 | DELETETRANSITGATEWAYROUTEINPUT_SCHEMA_ID,
|
64 64 | ::aws_smithy_schema::ShapeType::Structure,
|
65 65 | &[
|
66 66 | &DELETETRANSITGATEWAYROUTEINPUT_MEMBER_TRANSIT_GATEWAY_ROUTE_TABLE_ID,
|
67 67 | &DELETETRANSITGATEWAYROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK,
|
68 68 | &DELETETRANSITGATEWAYROUTEINPUT_MEMBER_DRY_RUN,
|
69 69 | ],
|
70 70 | );
|
71 71 | impl DeleteTransitGatewayRouteInput {
|
72 72 | /// The schema for this shape.
|
73 73 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETETRANSITGATEWAYROUTEINPUT_SCHEMA;
|
74 74 | }
|
75 75 | impl ::aws_smithy_schema::serde::SerializableStruct for DeleteTransitGatewayRouteInput {
|
76 76 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
77 77 | fn serialize_members(
|
78 78 | &self,
|
79 79 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
80 80 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
81 81 | if let Some(ref val) = self.transit_gateway_route_table_id {
|
82 82 | ser.write_string(&DELETETRANSITGATEWAYROUTEINPUT_MEMBER_TRANSIT_GATEWAY_ROUTE_TABLE_ID, val)?;
|
83 83 | }
|
84 84 | if let Some(ref val) = self.destination_cidr_block {
|
85 85 | ser.write_string(&DELETETRANSITGATEWAYROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK, val)?;
|
86 86 | }
|
87 87 | if let Some(ref val) = self.dry_run {
|
88 88 | ser.write_boolean(&DELETETRANSITGATEWAYROUTEINPUT_MEMBER_DRY_RUN, *val)?;
|
89 89 | }
|
90 90 | Ok(())
|
91 91 | }
|
92 92 | }
|
93 93 | impl DeleteTransitGatewayRouteInput {
|
94 94 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
95 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
96 - | deserializer: &mut D,
|
95 + | pub fn deserialize(
|
96 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
97 97 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
98 98 | #[allow(unused_variables, unused_mut)]
|
99 99 | let mut builder = Self::builder();
|
100 100 | #[allow(
|
101 101 | unused_variables,
|
102 102 | unreachable_code,
|
103 103 | clippy::single_match,
|
104 104 | clippy::match_single_binding,
|
105 105 | clippy::diverging_sub_expression
|
106 106 | )]
|
107 - | deserializer.read_struct(&DELETETRANSITGATEWAYROUTEINPUT_SCHEMA, (), |_, member, deser| {
|
107 + | deserializer.read_struct(&DELETETRANSITGATEWAYROUTEINPUT_SCHEMA, &mut |member, deser| {
|
108 108 | match member.member_index() {
|
109 109 | Some(0) => {
|
110 110 | builder.transit_gateway_route_table_id = Some(deser.read_string(member)?);
|
111 111 | }
|
112 112 | Some(1) => {
|
113 113 | builder.destination_cidr_block = Some(deser.read_string(member)?);
|
114 114 | }
|
115 115 | Some(2) => {
|
116 116 | builder.dry_run = Some(deser.read_boolean(member)?);
|
117 117 | }
|
118 118 | _ => {}
|
119 119 | }
|
120 120 | Ok(())
|
121 121 | })?;
|
122 + | builder.transit_gateway_route_table_id = builder.transit_gateway_route_table_id.or(Some(String::new()));
|
123 + | builder.destination_cidr_block = builder.destination_cidr_block.or(Some(String::new()));
|
122 124 | builder
|
123 125 | .build()
|
124 126 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
125 127 | }
|
126 128 | }
|
129 + | impl DeleteTransitGatewayRouteInput {
|
130 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
131 + | pub fn deserialize_with_response(
|
132 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
133 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
134 + | _status: u16,
|
135 + | _body: &[u8],
|
136 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
137 + | Self::deserialize(deserializer)
|
138 + | }
|
139 + | }
|
127 140 | impl DeleteTransitGatewayRouteInput {
|
128 141 | /// Creates a new builder-style object to manufacture [`DeleteTransitGatewayRouteInput`](crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteInput).
|
129 142 | pub fn builder() -> crate::operation::delete_transit_gateway_route::builders::DeleteTransitGatewayRouteInputBuilder {
|
130 143 | crate::operation::delete_transit_gateway_route::builders::DeleteTransitGatewayRouteInputBuilder::default()
|
131 144 | }
|
132 145 | }
|
133 146 |
|
134 147 | /// A builder for [`DeleteTransitGatewayRouteInput`](crate::operation::delete_transit_gateway_route::DeleteTransitGatewayRouteInput).
|
135 148 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
136 149 | #[non_exhaustive]
|