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