35 35 | "com.amazonaws.ec2.synthetic",
|
36 36 | "DeleteClientVpnRouteInput",
|
37 37 | );
|
38 38 | static DELETECLIENTVPNROUTEINPUT_MEMBER_CLIENT_VPN_ENDPOINT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
39 39 | ::aws_smithy_schema::ShapeId::from_static(
|
40 40 | "com.amazonaws.ec2.synthetic#DeleteClientVpnRouteInput$ClientVpnEndpointId",
|
41 41 | "com.amazonaws.ec2.synthetic",
|
42 42 | "DeleteClientVpnRouteInput",
|
43 43 | ),
|
44 44 | ::aws_smithy_schema::ShapeType::String,
|
45 - | "client_vpn_endpoint_id",
|
45 + | "ClientVpnEndpointId",
|
46 46 | 0,
|
47 47 | );
|
48 48 | static DELETECLIENTVPNROUTEINPUT_MEMBER_TARGET_VPC_SUBNET_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
49 49 | ::aws_smithy_schema::ShapeId::from_static(
|
50 50 | "com.amazonaws.ec2.synthetic#DeleteClientVpnRouteInput$TargetVpcSubnetId",
|
51 51 | "com.amazonaws.ec2.synthetic",
|
52 52 | "DeleteClientVpnRouteInput",
|
53 53 | ),
|
54 54 | ::aws_smithy_schema::ShapeType::String,
|
55 - | "target_vpc_subnet_id",
|
55 + | "TargetVpcSubnetId",
|
56 56 | 1,
|
57 57 | );
|
58 58 | static DELETECLIENTVPNROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
59 59 | ::aws_smithy_schema::ShapeId::from_static(
|
60 60 | "com.amazonaws.ec2.synthetic#DeleteClientVpnRouteInput$DestinationCidrBlock",
|
61 61 | "com.amazonaws.ec2.synthetic",
|
62 62 | "DeleteClientVpnRouteInput",
|
63 63 | ),
|
64 64 | ::aws_smithy_schema::ShapeType::String,
|
65 - | "destination_cidr_block",
|
65 + | "DestinationCidrBlock",
|
66 66 | 2,
|
67 67 | );
|
68 68 | static DELETECLIENTVPNROUTEINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
69 69 | ::aws_smithy_schema::ShapeId::from_static(
|
70 70 | "com.amazonaws.ec2.synthetic#DeleteClientVpnRouteInput$DryRun",
|
71 71 | "com.amazonaws.ec2.synthetic",
|
72 72 | "DeleteClientVpnRouteInput",
|
73 73 | ),
|
74 74 | ::aws_smithy_schema::ShapeType::Boolean,
|
75 - | "dry_run",
|
75 + | "DryRun",
|
76 76 | 3,
|
77 77 | );
|
78 78 | static DELETECLIENTVPNROUTEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
79 79 | DELETECLIENTVPNROUTEINPUT_SCHEMA_ID,
|
80 80 | ::aws_smithy_schema::ShapeType::Structure,
|
81 81 | &[
|
82 82 | &DELETECLIENTVPNROUTEINPUT_MEMBER_CLIENT_VPN_ENDPOINT_ID,
|
83 83 | &DELETECLIENTVPNROUTEINPUT_MEMBER_TARGET_VPC_SUBNET_ID,
|
84 84 | &DELETECLIENTVPNROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK,
|
85 85 | &DELETECLIENTVPNROUTEINPUT_MEMBER_DRY_RUN,
|
86 86 | ],
|
87 87 | );
|
88 88 | impl DeleteClientVpnRouteInput {
|
89 89 | /// The schema for this shape.
|
90 90 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETECLIENTVPNROUTEINPUT_SCHEMA;
|
91 91 | }
|
92 92 | impl ::aws_smithy_schema::serde::SerializableStruct for DeleteClientVpnRouteInput {
|
93 93 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
94 94 | fn serialize_members(
|
95 95 | &self,
|
96 96 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
97 97 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
98 98 | if let Some(ref val) = self.client_vpn_endpoint_id {
|
99 99 | ser.write_string(&DELETECLIENTVPNROUTEINPUT_MEMBER_CLIENT_VPN_ENDPOINT_ID, val)?;
|
100 100 | }
|
101 101 | if let Some(ref val) = self.target_vpc_subnet_id {
|
102 102 | ser.write_string(&DELETECLIENTVPNROUTEINPUT_MEMBER_TARGET_VPC_SUBNET_ID, val)?;
|
103 103 | }
|
104 104 | if let Some(ref val) = self.destination_cidr_block {
|
105 105 | ser.write_string(&DELETECLIENTVPNROUTEINPUT_MEMBER_DESTINATION_CIDR_BLOCK, val)?;
|
106 106 | }
|
107 107 | if let Some(ref val) = self.dry_run {
|
108 108 | ser.write_boolean(&DELETECLIENTVPNROUTEINPUT_MEMBER_DRY_RUN, *val)?;
|
109 109 | }
|
110 110 | Ok(())
|
111 111 | }
|
112 112 | }
|
113 113 | impl DeleteClientVpnRouteInput {
|
114 114 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
115 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
116 - | deserializer: &mut D,
|
115 + | pub fn deserialize(
|
116 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
117 117 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
118 118 | #[allow(unused_variables, unused_mut)]
|
119 119 | let mut builder = Self::builder();
|
120 120 | #[allow(
|
121 121 | unused_variables,
|
122 122 | unreachable_code,
|
123 123 | clippy::single_match,
|
124 124 | clippy::match_single_binding,
|
125 125 | clippy::diverging_sub_expression
|
126 126 | )]
|
127 - | deserializer.read_struct(&DELETECLIENTVPNROUTEINPUT_SCHEMA, (), |_, member, deser| {
|
127 + | deserializer.read_struct(&DELETECLIENTVPNROUTEINPUT_SCHEMA, &mut |member, deser| {
|
128 128 | match member.member_index() {
|
129 129 | Some(0) => {
|
130 130 | builder.client_vpn_endpoint_id = Some(deser.read_string(member)?);
|
131 131 | }
|
132 132 | Some(1) => {
|
133 133 | builder.target_vpc_subnet_id = Some(deser.read_string(member)?);
|
134 134 | }
|
135 135 | Some(2) => {
|
136 136 | builder.destination_cidr_block = Some(deser.read_string(member)?);
|
137 137 | }
|
138 138 | Some(3) => {
|
139 139 | builder.dry_run = Some(deser.read_boolean(member)?);
|
140 140 | }
|
141 141 | _ => {}
|
142 142 | }
|
143 143 | Ok(())
|
144 144 | })?;
|
145 + | builder.client_vpn_endpoint_id = builder.client_vpn_endpoint_id.or(Some(String::new()));
|
146 + | builder.destination_cidr_block = builder.destination_cidr_block.or(Some(String::new()));
|
145 147 | builder
|
146 148 | .build()
|
147 149 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
148 150 | }
|
149 151 | }
|
152 + | impl DeleteClientVpnRouteInput {
|
153 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
154 + | pub fn deserialize_with_response(
|
155 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
156 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
157 + | _status: u16,
|
158 + | _body: &[u8],
|
159 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
160 + | Self::deserialize(deserializer)
|
161 + | }
|
162 + | }
|
150 163 | impl DeleteClientVpnRouteInput {
|
151 164 | /// Creates a new builder-style object to manufacture [`DeleteClientVpnRouteInput`](crate::operation::delete_client_vpn_route::DeleteClientVpnRouteInput).
|
152 165 | pub fn builder() -> crate::operation::delete_client_vpn_route::builders::DeleteClientVpnRouteInputBuilder {
|
153 166 | crate::operation::delete_client_vpn_route::builders::DeleteClientVpnRouteInputBuilder::default()
|
154 167 | }
|
155 168 | }
|
156 169 |
|
157 170 | /// A builder for [`DeleteClientVpnRouteInput`](crate::operation::delete_client_vpn_route::DeleteClientVpnRouteInput).
|
158 171 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
159 172 | #[non_exhaustive]
|