42 42 | "com.amazonaws.s3",
|
43 43 | "S3TablesDestinationResult",
|
44 44 | );
|
45 45 | static S3TABLESDESTINATIONRESULT_MEMBER_TABLE_BUCKET_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
46 46 | ::aws_smithy_schema::ShapeId::from_static(
|
47 47 | "com.amazonaws.s3#S3TablesDestinationResult$TableBucketArn",
|
48 48 | "com.amazonaws.s3",
|
49 49 | "S3TablesDestinationResult",
|
50 50 | ),
|
51 51 | ::aws_smithy_schema::ShapeType::String,
|
52 - | "table_bucket_arn",
|
52 + | "TableBucketArn",
|
53 53 | 0,
|
54 54 | );
|
55 55 | static S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
56 56 | ::aws_smithy_schema::ShapeId::from_static(
|
57 57 | "com.amazonaws.s3#S3TablesDestinationResult$TableName",
|
58 58 | "com.amazonaws.s3",
|
59 59 | "S3TablesDestinationResult",
|
60 60 | ),
|
61 61 | ::aws_smithy_schema::ShapeType::String,
|
62 - | "table_name",
|
62 + | "TableName",
|
63 63 | 1,
|
64 64 | );
|
65 65 | static S3TABLESDESTINATIONRESULT_MEMBER_TABLE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
66 66 | ::aws_smithy_schema::ShapeId::from_static(
|
67 67 | "com.amazonaws.s3#S3TablesDestinationResult$TableArn",
|
68 68 | "com.amazonaws.s3",
|
69 69 | "S3TablesDestinationResult",
|
70 70 | ),
|
71 71 | ::aws_smithy_schema::ShapeType::String,
|
72 - | "table_arn",
|
72 + | "TableArn",
|
73 73 | 2,
|
74 74 | );
|
75 75 | static S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAMESPACE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
76 76 | ::aws_smithy_schema::ShapeId::from_static(
|
77 77 | "com.amazonaws.s3#S3TablesDestinationResult$TableNamespace",
|
78 78 | "com.amazonaws.s3",
|
79 79 | "S3TablesDestinationResult",
|
80 80 | ),
|
81 81 | ::aws_smithy_schema::ShapeType::String,
|
82 - | "table_namespace",
|
82 + | "TableNamespace",
|
83 83 | 3,
|
84 84 | );
|
85 85 | static S3TABLESDESTINATIONRESULT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
86 86 | S3TABLESDESTINATIONRESULT_SCHEMA_ID,
|
87 87 | ::aws_smithy_schema::ShapeType::Structure,
|
88 88 | &[
|
89 89 | &S3TABLESDESTINATIONRESULT_MEMBER_TABLE_BUCKET_ARN,
|
90 90 | &S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAME,
|
91 91 | &S3TABLESDESTINATIONRESULT_MEMBER_TABLE_ARN,
|
92 92 | &S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAMESPACE,
|
93 93 | ],
|
94 94 | );
|
95 95 | impl S3TablesDestinationResult {
|
96 96 | /// The schema for this shape.
|
97 97 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &S3TABLESDESTINATIONRESULT_SCHEMA;
|
98 98 | }
|
99 99 | impl ::aws_smithy_schema::serde::SerializableStruct for S3TablesDestinationResult {
|
100 100 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
101 101 | fn serialize_members(
|
102 102 | &self,
|
103 103 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
104 104 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
105 105 | {
|
106 106 | let val = &self.table_bucket_arn;
|
107 107 | ser.write_string(&S3TABLESDESTINATIONRESULT_MEMBER_TABLE_BUCKET_ARN, val)?;
|
108 108 | }
|
109 109 | {
|
110 110 | let val = &self.table_name;
|
111 111 | ser.write_string(&S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAME, val)?;
|
112 112 | }
|
113 113 | {
|
114 114 | let val = &self.table_arn;
|
115 115 | ser.write_string(&S3TABLESDESTINATIONRESULT_MEMBER_TABLE_ARN, val)?;
|
116 116 | }
|
117 117 | {
|
118 118 | let val = &self.table_namespace;
|
119 119 | ser.write_string(&S3TABLESDESTINATIONRESULT_MEMBER_TABLE_NAMESPACE, val)?;
|
120 120 | }
|
121 121 | Ok(())
|
122 122 | }
|
123 123 | }
|
124 124 | impl S3TablesDestinationResult {
|
125 125 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
126 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
127 - | deserializer: &mut D,
|
126 + | pub fn deserialize(
|
127 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
128 128 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
129 129 | #[allow(unused_variables, unused_mut)]
|
130 130 | let mut builder = Self::builder();
|
131 131 | #[allow(
|
132 132 | unused_variables,
|
133 133 | unreachable_code,
|
134 134 | clippy::single_match,
|
135 135 | clippy::match_single_binding,
|
136 136 | clippy::diverging_sub_expression
|
137 137 | )]
|
138 - | deserializer.read_struct(&S3TABLESDESTINATIONRESULT_SCHEMA, (), |_, member, deser| {
|
138 + | deserializer.read_struct(&S3TABLESDESTINATIONRESULT_SCHEMA, &mut |member, deser| {
|
139 139 | match member.member_index() {
|
140 140 | Some(0) => {
|
141 141 | builder.table_bucket_arn = Some(deser.read_string(member)?);
|
142 142 | }
|
143 143 | Some(1) => {
|
144 144 | builder.table_name = Some(deser.read_string(member)?);
|
145 145 | }
|
146 146 | Some(2) => {
|
147 147 | builder.table_arn = Some(deser.read_string(member)?);
|
148 148 | }
|
149 149 | Some(3) => {
|
150 150 | builder.table_namespace = Some(deser.read_string(member)?);
|
151 151 | }
|
152 152 | _ => {}
|
153 153 | }
|
154 154 | Ok(())
|
155 155 | })?;
|
156 + | builder.table_bucket_arn = builder.table_bucket_arn.or(Some(String::new()));
|
157 + | builder.table_name = builder.table_name.or(Some(String::new()));
|
158 + | builder.table_arn = builder.table_arn.or(Some(String::new()));
|
159 + | builder.table_namespace = builder.table_namespace.or(Some(String::new()));
|
156 160 | builder
|
157 161 | .build()
|
158 162 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
159 163 | }
|
160 164 | }
|
165 + | impl S3TablesDestinationResult {
|
166 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
167 + | pub fn deserialize_with_response(
|
168 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
169 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
170 + | _status: u16,
|
171 + | _body: &[u8],
|
172 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
173 + | Self::deserialize(deserializer)
|
174 + | }
|
175 + | }
|
161 176 | impl S3TablesDestinationResult {
|
162 177 | /// Creates a new builder-style object to manufacture [`S3TablesDestinationResult`](crate::types::S3TablesDestinationResult).
|
163 178 | pub fn builder() -> crate::types::builders::S3TablesDestinationResultBuilder {
|
164 179 | crate::types::builders::S3TablesDestinationResultBuilder::default()
|
165 180 | }
|
166 181 | }
|
167 182 |
|
168 183 | /// A builder for [`S3TablesDestinationResult`](crate::types::S3TablesDestinationResult).
|
169 184 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
170 185 | #[non_exhaustive]
|
171 186 | pub struct S3TablesDestinationResultBuilder {
|
172 187 | pub(crate) table_bucket_arn: ::std::option::Option<::std::string::String>,
|
173 188 | pub(crate) table_name: ::std::option::Option<::std::string::String>,
|
174 189 | pub(crate) table_arn: ::std::option::Option<::std::string::String>,
|
175 190 | pub(crate) table_namespace: ::std::option::Option<::std::string::String>,
|
176 191 | }
|
177 192 | impl S3TablesDestinationResultBuilder {
|
178 193 | /// <p>The Amazon Resource Name (ARN) for the table bucket that's specified as the destination in the metadata table configuration. The destination table bucket must be in the same Region and Amazon Web Services account as the general purpose bucket.</p>
|
179 194 | /// This field is required.
|
180 195 | pub fn table_bucket_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
181 196 | self.table_bucket_arn = ::std::option::Option::Some(input.into());
|
182 197 | self
|
183 198 | }
|
184 199 | /// <p>The Amazon Resource Name (ARN) for the table bucket that's specified as the destination in the metadata table configuration. The destination table bucket must be in the same Region and Amazon Web Services account as the general purpose bucket.</p>
|
185 200 | pub fn set_table_bucket_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
186 201 | self.table_bucket_arn = input;
|
187 202 | self
|
188 203 | }
|
189 204 | /// <p>The Amazon Resource Name (ARN) for the table bucket that's specified as the destination in the metadata table configuration. The destination table bucket must be in the same Region and Amazon Web Services account as the general purpose bucket.</p>
|
190 205 | pub fn get_table_bucket_arn(&self) -> &::std::option::Option<::std::string::String> {
|