60 60 | "com.amazonaws.s3control",
|
61 61 | "JobListDescriptor",
|
62 62 | );
|
63 63 | static JOBLISTDESCRIPTOR_MEMBER_JOB_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
64 64 | ::aws_smithy_schema::ShapeId::from_static(
|
65 65 | "com.amazonaws.s3control#JobListDescriptor$JobId",
|
66 66 | "com.amazonaws.s3control",
|
67 67 | "JobListDescriptor",
|
68 68 | ),
|
69 69 | ::aws_smithy_schema::ShapeType::String,
|
70 - | "job_id",
|
70 + | "JobId",
|
71 71 | 0,
|
72 72 | );
|
73 73 | static JOBLISTDESCRIPTOR_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
74 74 | ::aws_smithy_schema::ShapeId::from_static(
|
75 75 | "com.amazonaws.s3control#JobListDescriptor$Description",
|
76 76 | "com.amazonaws.s3control",
|
77 77 | "JobListDescriptor",
|
78 78 | ),
|
79 79 | ::aws_smithy_schema::ShapeType::String,
|
80 - | "description",
|
80 + | "Description",
|
81 81 | 1,
|
82 82 | );
|
83 83 | static JOBLISTDESCRIPTOR_MEMBER_OPERATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
84 84 | ::aws_smithy_schema::ShapeId::from_static(
|
85 85 | "com.amazonaws.s3control#JobListDescriptor$Operation",
|
86 86 | "com.amazonaws.s3control",
|
87 87 | "JobListDescriptor",
|
88 88 | ),
|
89 89 | ::aws_smithy_schema::ShapeType::String,
|
90 - | "operation",
|
90 + | "Operation",
|
91 91 | 2,
|
92 92 | );
|
93 93 | static JOBLISTDESCRIPTOR_MEMBER_PRIORITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
94 94 | ::aws_smithy_schema::ShapeId::from_static(
|
95 95 | "com.amazonaws.s3control#JobListDescriptor$Priority",
|
96 96 | "com.amazonaws.s3control",
|
97 97 | "JobListDescriptor",
|
98 98 | ),
|
99 99 | ::aws_smithy_schema::ShapeType::Integer,
|
100 - | "priority",
|
100 + | "Priority",
|
101 101 | 3,
|
102 102 | );
|
103 103 | static JOBLISTDESCRIPTOR_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
104 104 | ::aws_smithy_schema::ShapeId::from_static(
|
105 105 | "com.amazonaws.s3control#JobListDescriptor$Status",
|
106 106 | "com.amazonaws.s3control",
|
107 107 | "JobListDescriptor",
|
108 108 | ),
|
109 109 | ::aws_smithy_schema::ShapeType::String,
|
110 - | "status",
|
110 + | "Status",
|
111 111 | 4,
|
112 112 | );
|
113 113 | static JOBLISTDESCRIPTOR_MEMBER_CREATION_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
114 114 | ::aws_smithy_schema::ShapeId::from_static(
|
115 115 | "com.amazonaws.s3control#JobListDescriptor$CreationTime",
|
116 116 | "com.amazonaws.s3control",
|
117 117 | "JobListDescriptor",
|
118 118 | ),
|
119 119 | ::aws_smithy_schema::ShapeType::Timestamp,
|
120 - | "creation_time",
|
120 + | "CreationTime",
|
121 121 | 5,
|
122 122 | );
|
123 123 | static JOBLISTDESCRIPTOR_MEMBER_TERMINATION_DATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
124 124 | ::aws_smithy_schema::ShapeId::from_static(
|
125 125 | "com.amazonaws.s3control#JobListDescriptor$TerminationDate",
|
126 126 | "com.amazonaws.s3control",
|
127 127 | "JobListDescriptor",
|
128 128 | ),
|
129 129 | ::aws_smithy_schema::ShapeType::Timestamp,
|
130 - | "termination_date",
|
130 + | "TerminationDate",
|
131 131 | 6,
|
132 132 | );
|
133 133 | static JOBLISTDESCRIPTOR_MEMBER_PROGRESS_SUMMARY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
134 134 | ::aws_smithy_schema::ShapeId::from_static(
|
135 135 | "com.amazonaws.s3control#JobListDescriptor$ProgressSummary",
|
136 136 | "com.amazonaws.s3control",
|
137 137 | "JobListDescriptor",
|
138 138 | ),
|
139 139 | ::aws_smithy_schema::ShapeType::Structure,
|
140 - | "progress_summary",
|
140 + | "ProgressSummary",
|
141 141 | 7,
|
142 142 | );
|
143 143 | static JOBLISTDESCRIPTOR_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
144 144 | JOBLISTDESCRIPTOR_SCHEMA_ID,
|
145 145 | ::aws_smithy_schema::ShapeType::Structure,
|
146 146 | &[
|
147 147 | &JOBLISTDESCRIPTOR_MEMBER_JOB_ID,
|
148 148 | &JOBLISTDESCRIPTOR_MEMBER_DESCRIPTION,
|
149 149 | &JOBLISTDESCRIPTOR_MEMBER_OPERATION,
|
150 150 | &JOBLISTDESCRIPTOR_MEMBER_PRIORITY,
|
151 151 | &JOBLISTDESCRIPTOR_MEMBER_STATUS,
|
152 152 | &JOBLISTDESCRIPTOR_MEMBER_CREATION_TIME,
|
153 153 | &JOBLISTDESCRIPTOR_MEMBER_TERMINATION_DATE,
|
154 154 | &JOBLISTDESCRIPTOR_MEMBER_PROGRESS_SUMMARY,
|
155 155 | ],
|
156 156 | );
|
157 157 | impl JobListDescriptor {
|
158 158 | /// The schema for this shape.
|
159 159 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &JOBLISTDESCRIPTOR_SCHEMA;
|
160 160 | }
|
161 161 | impl ::aws_smithy_schema::serde::SerializableStruct for JobListDescriptor {
|
162 162 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
163 163 | fn serialize_members(
|
164 164 | &self,
|
165 165 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
166 166 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
167 167 | if let Some(ref val) = self.job_id {
|
168 168 | ser.write_string(&JOBLISTDESCRIPTOR_MEMBER_JOB_ID, val)?;
|
169 169 | }
|
170 170 | if let Some(ref val) = self.description {
|
171 171 | ser.write_string(&JOBLISTDESCRIPTOR_MEMBER_DESCRIPTION, val)?;
|
172 172 | }
|
173 173 | if let Some(ref val) = self.operation {
|
174 174 | ser.write_string(&JOBLISTDESCRIPTOR_MEMBER_OPERATION, val.as_str())?;
|
175 175 | }
|
176 176 | {
|
177 177 | let val = &self.priority;
|
178 178 | ser.write_integer(&JOBLISTDESCRIPTOR_MEMBER_PRIORITY, *val)?;
|
179 179 | }
|
180 180 | if let Some(ref val) = self.status {
|
181 181 | ser.write_string(&JOBLISTDESCRIPTOR_MEMBER_STATUS, val.as_str())?;
|
182 182 | }
|
183 183 | if let Some(ref val) = self.creation_time {
|
184 184 | ser.write_timestamp(&JOBLISTDESCRIPTOR_MEMBER_CREATION_TIME, val)?;
|
185 185 | }
|
186 186 | if let Some(ref val) = self.termination_date {
|
187 187 | ser.write_timestamp(&JOBLISTDESCRIPTOR_MEMBER_TERMINATION_DATE, val)?;
|
188 188 | }
|
189 189 | if let Some(ref val) = self.progress_summary {
|
190 190 | ser.write_struct(&JOBLISTDESCRIPTOR_MEMBER_PROGRESS_SUMMARY, val)?;
|
191 191 | }
|
192 192 | Ok(())
|
193 193 | }
|
194 194 | }
|
195 195 | impl JobListDescriptor {
|
196 196 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
197 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
198 - | deserializer: &mut D,
|
197 + | pub fn deserialize(
|
198 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
199 199 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
200 200 | #[allow(unused_variables, unused_mut)]
|
201 201 | let mut builder = Self::builder();
|
202 202 | #[allow(
|
203 203 | unused_variables,
|
204 204 | unreachable_code,
|
205 205 | clippy::single_match,
|
206 206 | clippy::match_single_binding,
|
207 207 | clippy::diverging_sub_expression
|
208 208 | )]
|
209 - | deserializer.read_struct(&JOBLISTDESCRIPTOR_SCHEMA, (), |_, member, deser| {
|
209 + | deserializer.read_struct(&JOBLISTDESCRIPTOR_SCHEMA, &mut |member, deser| {
|
210 210 | match member.member_index() {
|
211 211 | Some(0) => {
|
212 212 | builder.job_id = Some(deser.read_string(member)?);
|
213 213 | }
|
214 214 | Some(1) => {
|
215 215 | builder.description = Some(deser.read_string(member)?);
|
216 216 | }
|
217 217 | Some(2) => {
|
218 218 | builder.operation = Some(crate::types::OperationName::from(deser.read_string(member)?.as_str()));
|
219 219 | }
|
220 220 | Some(3) => {
|
221 221 | builder.priority = Some(deser.read_integer(member)?);
|
222 222 | }
|
223 223 | Some(4) => {
|
224 224 | builder.status = Some(crate::types::JobStatus::from(deser.read_string(member)?.as_str()));
|
225 225 | }
|
226 226 | Some(5) => {
|
227 227 | builder.creation_time = Some(deser.read_timestamp(member)?);
|
228 228 | }
|
229 229 | Some(6) => {
|
230 230 | builder.termination_date = Some(deser.read_timestamp(member)?);
|
231 231 | }
|
232 232 | Some(7) => {
|
233 233 | builder.progress_summary = Some(crate::types::JobProgressSummary::deserialize(deser)?);
|
234 234 | }
|
235 235 | _ => {}
|
236 236 | }
|
237 237 | Ok(())
|
238 238 | })?;
|
239 239 | Ok(builder.build())
|
240 240 | }
|
241 241 | }
|
242 + | impl JobListDescriptor {
|
243 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
244 + | pub fn deserialize_with_response(
|
245 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
246 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
247 + | _status: u16,
|
248 + | _body: &[u8],
|
249 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
250 + | Self::deserialize(deserializer)
|
251 + | }
|
252 + | }
|
242 253 | impl JobListDescriptor {
|
243 254 | /// Creates a new builder-style object to manufacture [`JobListDescriptor`](crate::types::JobListDescriptor).
|
244 255 | pub fn builder() -> crate::types::builders::JobListDescriptorBuilder {
|
245 256 | crate::types::builders::JobListDescriptorBuilder::default()
|
246 257 | }
|
247 258 | }
|
248 259 |
|
249 260 | /// A builder for [`JobListDescriptor`](crate::types::JobListDescriptor).
|
250 261 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
251 262 | #[non_exhaustive]
|