66 66 | "com.amazonaws.s3",
|
67 67 | "InventoryTableConfigurationResult",
|
68 68 | );
|
69 69 | static INVENTORYTABLECONFIGURATIONRESULT_MEMBER_CONFIGURATION_STATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
70 70 | ::aws_smithy_schema::ShapeId::from_static(
|
71 71 | "com.amazonaws.s3#InventoryTableConfigurationResult$ConfigurationState",
|
72 72 | "com.amazonaws.s3",
|
73 73 | "InventoryTableConfigurationResult",
|
74 74 | ),
|
75 75 | ::aws_smithy_schema::ShapeType::String,
|
76 - | "configuration_state",
|
76 + | "ConfigurationState",
|
77 77 | 0,
|
78 78 | );
|
79 79 | static INVENTORYTABLECONFIGURATIONRESULT_MEMBER_TABLE_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
80 80 | ::aws_smithy_schema::ShapeId::from_static(
|
81 81 | "com.amazonaws.s3#InventoryTableConfigurationResult$TableStatus",
|
82 82 | "com.amazonaws.s3",
|
83 83 | "InventoryTableConfigurationResult",
|
84 84 | ),
|
85 85 | ::aws_smithy_schema::ShapeType::String,
|
86 - | "table_status",
|
86 + | "TableStatus",
|
87 87 | 1,
|
88 88 | );
|
89 89 | static INVENTORYTABLECONFIGURATIONRESULT_MEMBER_ERROR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
90 90 | ::aws_smithy_schema::ShapeId::from_static(
|
91 91 | "com.amazonaws.s3#InventoryTableConfigurationResult$Error",
|
92 92 | "com.amazonaws.s3",
|
93 93 | "InventoryTableConfigurationResult",
|
94 94 | ),
|
95 95 | ::aws_smithy_schema::ShapeType::Structure,
|
96 - | "error",
|
96 + | "Error",
|
97 97 | 2,
|
98 98 | );
|
99 99 | static INVENTORYTABLECONFIGURATIONRESULT_MEMBER_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
100 100 | ::aws_smithy_schema::ShapeId::from_static(
|
101 101 | "com.amazonaws.s3#InventoryTableConfigurationResult$TableName",
|
102 102 | "com.amazonaws.s3",
|
103 103 | "InventoryTableConfigurationResult",
|
104 104 | ),
|
105 105 | ::aws_smithy_schema::ShapeType::String,
|
106 - | "table_name",
|
106 + | "TableName",
|
107 107 | 3,
|
108 108 | );
|
109 109 | static INVENTORYTABLECONFIGURATIONRESULT_MEMBER_TABLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
110 110 | ::aws_smithy_schema::ShapeId::from_static(
|
111 111 | "com.amazonaws.s3#InventoryTableConfigurationResult$TableArn",
|
112 112 | "com.amazonaws.s3",
|
113 113 | "InventoryTableConfigurationResult",
|
114 114 | ),
|
115 115 | ::aws_smithy_schema::ShapeType::String,
|
116 - | "table_arn",
|
116 + | "TableArn",
|
117 117 | 4,
|
118 118 | );
|
119 119 | static INVENTORYTABLECONFIGURATIONRESULT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
120 120 | INVENTORYTABLECONFIGURATIONRESULT_SCHEMA_ID,
|
121 121 | ::aws_smithy_schema::ShapeType::Structure,
|
122 122 | &[
|
123 123 | &INVENTORYTABLECONFIGURATIONRESULT_MEMBER_CONFIGURATION_STATE,
|
124 124 | &INVENTORYTABLECONFIGURATIONRESULT_MEMBER_TABLE_STATUS,
|
125 125 | &INVENTORYTABLECONFIGURATIONRESULT_MEMBER_ERROR,
|
126 126 | &INVENTORYTABLECONFIGURATIONRESULT_MEMBER_TABLE_NAME,
|
127 127 | &INVENTORYTABLECONFIGURATIONRESULT_MEMBER_TABLE_ARN,
|
128 128 | ],
|
129 129 | );
|
130 130 | impl InventoryTableConfigurationResult {
|
131 131 | /// The schema for this shape.
|
132 132 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &INVENTORYTABLECONFIGURATIONRESULT_SCHEMA;
|
133 133 | }
|
134 134 | impl ::aws_smithy_schema::serde::SerializableStruct for InventoryTableConfigurationResult {
|
135 135 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
136 136 | fn serialize_members(
|
137 137 | &self,
|
138 138 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
139 139 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
140 140 | {
|
141 141 | let val = &self.configuration_state;
|
142 142 | ser.write_string(&INVENTORYTABLECONFIGURATIONRESULT_MEMBER_CONFIGURATION_STATE, val.as_str())?;
|
143 143 | }
|
144 144 | if let Some(ref val) = self.table_status {
|
145 145 | ser.write_string(&INVENTORYTABLECONFIGURATIONRESULT_MEMBER_TABLE_STATUS, val)?;
|
146 146 | }
|
147 147 | if let Some(ref val) = self.error {
|
148 148 | ser.write_struct(&INVENTORYTABLECONFIGURATIONRESULT_MEMBER_ERROR, val)?;
|
149 149 | }
|
150 150 | if let Some(ref val) = self.table_name {
|
151 151 | ser.write_string(&INVENTORYTABLECONFIGURATIONRESULT_MEMBER_TABLE_NAME, val)?;
|
152 152 | }
|
153 153 | if let Some(ref val) = self.table_arn {
|
154 154 | ser.write_string(&INVENTORYTABLECONFIGURATIONRESULT_MEMBER_TABLE_ARN, val)?;
|
155 155 | }
|
156 156 | Ok(())
|
157 157 | }
|
158 158 | }
|
159 159 | impl InventoryTableConfigurationResult {
|
160 160 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
161 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
162 - | deserializer: &mut D,
|
161 + | pub fn deserialize(
|
162 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
163 163 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
164 164 | #[allow(unused_variables, unused_mut)]
|
165 165 | let mut builder = Self::builder();
|
166 166 | #[allow(
|
167 167 | unused_variables,
|
168 168 | unreachable_code,
|
169 169 | clippy::single_match,
|
170 170 | clippy::match_single_binding,
|
171 171 | clippy::diverging_sub_expression
|
172 172 | )]
|
173 - | deserializer.read_struct(&INVENTORYTABLECONFIGURATIONRESULT_SCHEMA, (), |_, member, deser| {
|
173 + | deserializer.read_struct(&INVENTORYTABLECONFIGURATIONRESULT_SCHEMA, &mut |member, deser| {
|
174 174 | match member.member_index() {
|
175 175 | Some(0) => {
|
176 176 | builder.configuration_state = Some(crate::types::InventoryConfigurationState::from(deser.read_string(member)?.as_str()));
|
177 177 | }
|
178 178 | Some(1) => {
|
179 179 | builder.table_status = Some(deser.read_string(member)?);
|
180 180 | }
|
181 181 | Some(2) => {
|
182 182 | builder.error = Some(crate::types::ErrorDetails::deserialize(deser)?);
|
183 183 | }
|
184 184 | Some(3) => {
|
185 185 | builder.table_name = Some(deser.read_string(member)?);
|
186 186 | }
|
187 187 | Some(4) => {
|
188 188 | builder.table_arn = Some(deser.read_string(member)?);
|
189 189 | }
|
190 190 | _ => {}
|
191 191 | }
|
192 192 | Ok(())
|
193 193 | })?;
|
194 194 | builder
|
195 195 | .build()
|
196 196 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
197 197 | }
|
198 198 | }
|
199 + | impl InventoryTableConfigurationResult {
|
200 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
201 + | pub fn deserialize_with_response(
|
202 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
203 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
204 + | _status: u16,
|
205 + | _body: &[u8],
|
206 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
207 + | Self::deserialize(deserializer)
|
208 + | }
|
209 + | }
|
199 210 | impl InventoryTableConfigurationResult {
|
200 211 | /// Creates a new builder-style object to manufacture [`InventoryTableConfigurationResult`](crate::types::InventoryTableConfigurationResult).
|
201 212 | pub fn builder() -> crate::types::builders::InventoryTableConfigurationResultBuilder {
|
202 213 | crate::types::builders::InventoryTableConfigurationResultBuilder::default()
|
203 214 | }
|
204 215 | }
|
205 216 |
|
206 217 | /// A builder for [`InventoryTableConfigurationResult`](crate::types::InventoryTableConfigurationResult).
|
207 218 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
208 219 | #[non_exhaustive]
|