35 35 | "com.amazonaws.ec2.synthetic",
|
36 36 | "DeleteNetworkAclEntryInput",
|
37 37 | );
|
38 38 | static DELETENETWORKACLENTRYINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
39 39 | ::aws_smithy_schema::ShapeId::from_static(
|
40 40 | "com.amazonaws.ec2.synthetic#DeleteNetworkAclEntryInput$DryRun",
|
41 41 | "com.amazonaws.ec2.synthetic",
|
42 42 | "DeleteNetworkAclEntryInput",
|
43 43 | ),
|
44 44 | ::aws_smithy_schema::ShapeType::Boolean,
|
45 - | "dry_run",
|
45 + | "DryRun",
|
46 46 | 0,
|
47 47 | )
|
48 48 | .with_xml_name("dryRun");
|
49 49 | static DELETENETWORKACLENTRYINPUT_MEMBER_NETWORK_ACL_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
50 50 | ::aws_smithy_schema::ShapeId::from_static(
|
51 51 | "com.amazonaws.ec2.synthetic#DeleteNetworkAclEntryInput$NetworkAclId",
|
52 52 | "com.amazonaws.ec2.synthetic",
|
53 53 | "DeleteNetworkAclEntryInput",
|
54 54 | ),
|
55 55 | ::aws_smithy_schema::ShapeType::String,
|
56 - | "network_acl_id",
|
56 + | "NetworkAclId",
|
57 57 | 1,
|
58 58 | )
|
59 59 | .with_xml_name("networkAclId");
|
60 60 | static DELETENETWORKACLENTRYINPUT_MEMBER_RULE_NUMBER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
61 61 | ::aws_smithy_schema::ShapeId::from_static(
|
62 62 | "com.amazonaws.ec2.synthetic#DeleteNetworkAclEntryInput$RuleNumber",
|
63 63 | "com.amazonaws.ec2.synthetic",
|
64 64 | "DeleteNetworkAclEntryInput",
|
65 65 | ),
|
66 66 | ::aws_smithy_schema::ShapeType::Integer,
|
67 - | "rule_number",
|
67 + | "RuleNumber",
|
68 68 | 2,
|
69 69 | )
|
70 70 | .with_xml_name("ruleNumber");
|
71 71 | static DELETENETWORKACLENTRYINPUT_MEMBER_EGRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
72 72 | ::aws_smithy_schema::ShapeId::from_static(
|
73 73 | "com.amazonaws.ec2.synthetic#DeleteNetworkAclEntryInput$Egress",
|
74 74 | "com.amazonaws.ec2.synthetic",
|
75 75 | "DeleteNetworkAclEntryInput",
|
76 76 | ),
|
77 77 | ::aws_smithy_schema::ShapeType::Boolean,
|
78 - | "egress",
|
78 + | "Egress",
|
79 79 | 3,
|
80 80 | )
|
81 81 | .with_xml_name("egress");
|
82 82 | static DELETENETWORKACLENTRYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
83 83 | DELETENETWORKACLENTRYINPUT_SCHEMA_ID,
|
84 84 | ::aws_smithy_schema::ShapeType::Structure,
|
85 85 | &[
|
86 86 | &DELETENETWORKACLENTRYINPUT_MEMBER_DRY_RUN,
|
87 87 | &DELETENETWORKACLENTRYINPUT_MEMBER_NETWORK_ACL_ID,
|
88 88 | &DELETENETWORKACLENTRYINPUT_MEMBER_RULE_NUMBER,
|
89 89 | &DELETENETWORKACLENTRYINPUT_MEMBER_EGRESS,
|
90 90 | ],
|
91 91 | );
|
92 92 | impl DeleteNetworkAclEntryInput {
|
93 93 | /// The schema for this shape.
|
94 94 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETENETWORKACLENTRYINPUT_SCHEMA;
|
95 95 | }
|
96 96 | impl ::aws_smithy_schema::serde::SerializableStruct for DeleteNetworkAclEntryInput {
|
97 97 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
98 98 | fn serialize_members(
|
99 99 | &self,
|
100 100 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
101 101 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
102 102 | if let Some(ref val) = self.dry_run {
|
103 103 | ser.write_boolean(&DELETENETWORKACLENTRYINPUT_MEMBER_DRY_RUN, *val)?;
|
104 104 | }
|
105 105 | if let Some(ref val) = self.network_acl_id {
|
106 106 | ser.write_string(&DELETENETWORKACLENTRYINPUT_MEMBER_NETWORK_ACL_ID, val)?;
|
107 107 | }
|
108 108 | if let Some(ref val) = self.rule_number {
|
109 109 | ser.write_integer(&DELETENETWORKACLENTRYINPUT_MEMBER_RULE_NUMBER, *val)?;
|
110 110 | }
|
111 111 | if let Some(ref val) = self.egress {
|
112 112 | ser.write_boolean(&DELETENETWORKACLENTRYINPUT_MEMBER_EGRESS, *val)?;
|
113 113 | }
|
114 114 | Ok(())
|
115 115 | }
|
116 116 | }
|
117 117 | impl DeleteNetworkAclEntryInput {
|
118 118 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
119 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
120 - | deserializer: &mut D,
|
119 + | pub fn deserialize(
|
120 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
121 121 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
122 122 | #[allow(unused_variables, unused_mut)]
|
123 123 | let mut builder = Self::builder();
|
124 124 | #[allow(
|
125 125 | unused_variables,
|
126 126 | unreachable_code,
|
127 127 | clippy::single_match,
|
128 128 | clippy::match_single_binding,
|
129 129 | clippy::diverging_sub_expression
|
130 130 | )]
|
131 - | deserializer.read_struct(&DELETENETWORKACLENTRYINPUT_SCHEMA, (), |_, member, deser| {
|
131 + | deserializer.read_struct(&DELETENETWORKACLENTRYINPUT_SCHEMA, &mut |member, deser| {
|
132 132 | match member.member_index() {
|
133 133 | Some(0) => {
|
134 134 | builder.dry_run = Some(deser.read_boolean(member)?);
|
135 135 | }
|
136 136 | Some(1) => {
|
137 137 | builder.network_acl_id = Some(deser.read_string(member)?);
|
138 138 | }
|
139 139 | Some(2) => {
|
140 140 | builder.rule_number = Some(deser.read_integer(member)?);
|
141 141 | }
|
142 142 | Some(3) => {
|
143 143 | builder.egress = Some(deser.read_boolean(member)?);
|
144 144 | }
|
145 145 | _ => {}
|
146 146 | }
|
147 147 | Ok(())
|
148 148 | })?;
|
149 + | builder.network_acl_id = builder.network_acl_id.or(Some(String::new()));
|
150 + | builder.rule_number = builder.rule_number.or(Some(0i32));
|
151 + | builder.egress = builder.egress.or(Some(false));
|
149 152 | builder
|
150 153 | .build()
|
151 154 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
152 155 | }
|
153 156 | }
|
157 + | impl DeleteNetworkAclEntryInput {
|
158 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
159 + | pub fn deserialize_with_response(
|
160 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
161 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
162 + | _status: u16,
|
163 + | _body: &[u8],
|
164 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
165 + | Self::deserialize(deserializer)
|
166 + | }
|
167 + | }
|
154 168 | impl DeleteNetworkAclEntryInput {
|
155 169 | /// Creates a new builder-style object to manufacture [`DeleteNetworkAclEntryInput`](crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryInput).
|
156 170 | pub fn builder() -> crate::operation::delete_network_acl_entry::builders::DeleteNetworkAclEntryInputBuilder {
|
157 171 | crate::operation::delete_network_acl_entry::builders::DeleteNetworkAclEntryInputBuilder::default()
|
158 172 | }
|
159 173 | }
|
160 174 |
|
161 175 | /// A builder for [`DeleteNetworkAclEntryInput`](crate::operation::delete_network_acl_entry::DeleteNetworkAclEntryInput).
|
162 176 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
163 177 | #[non_exhaustive]
|
164 178 | pub struct DeleteNetworkAclEntryInputBuilder {
|
165 179 | pub(crate) dry_run: ::std::option::Option<bool>,
|
166 180 | pub(crate) network_acl_id: ::std::option::Option<::std::string::String>,
|
167 181 | pub(crate) rule_number: ::std::option::Option<i32>,
|
168 182 | pub(crate) egress: ::std::option::Option<bool>,
|
169 183 | }
|
170 184 | impl DeleteNetworkAclEntryInputBuilder {
|
171 185 | /// <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>
|
172 186 | pub fn dry_run(mut self, input: bool) -> Self {
|
173 187 | self.dry_run = ::std::option::Option::Some(input);
|
174 188 | self
|
175 189 | }
|
176 190 | /// <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>
|
177 191 | pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
|
178 192 | self.dry_run = input;
|
179 193 | self
|
180 194 | }
|
181 195 | /// <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>
|
182 196 | pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
|
183 197 | &self.dry_run
|