29 29 | "com.amazonaws.s3control.synthetic",
|
30 30 | "DeleteMultiRegionAccessPointInput",
|
31 31 | );
|
32 32 | static DELETEMULTIREGIONACCESSPOINTINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
33 33 | ::aws_smithy_schema::ShapeId::from_static(
|
34 34 | "com.amazonaws.s3control.synthetic#DeleteMultiRegionAccessPointInput$AccountId",
|
35 35 | "com.amazonaws.s3control.synthetic",
|
36 36 | "DeleteMultiRegionAccessPointInput",
|
37 37 | ),
|
38 38 | ::aws_smithy_schema::ShapeType::String,
|
39 - | "account_id",
|
39 + | "AccountId",
|
40 40 | 0,
|
41 41 | )
|
42 42 | .with_host_label()
|
43 43 | .with_http_header("x-amz-account-id");
|
44 44 | static DELETEMULTIREGIONACCESSPOINTINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
45 45 | ::aws_smithy_schema::ShapeId::from_static(
|
46 46 | "com.amazonaws.s3control.synthetic#DeleteMultiRegionAccessPointInput$ClientToken",
|
47 47 | "com.amazonaws.s3control.synthetic",
|
48 48 | "DeleteMultiRegionAccessPointInput",
|
49 49 | ),
|
50 50 | ::aws_smithy_schema::ShapeType::String,
|
51 - | "client_token",
|
51 + | "ClientToken",
|
52 52 | 1,
|
53 53 | );
|
54 54 | static DELETEMULTIREGIONACCESSPOINTINPUT_MEMBER_DETAILS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
55 55 | ::aws_smithy_schema::ShapeId::from_static(
|
56 56 | "com.amazonaws.s3control.synthetic#DeleteMultiRegionAccessPointInput$Details",
|
57 57 | "com.amazonaws.s3control.synthetic",
|
58 58 | "DeleteMultiRegionAccessPointInput",
|
59 59 | ),
|
60 60 | ::aws_smithy_schema::ShapeType::Structure,
|
61 - | "details",
|
61 + | "Details",
|
62 62 | 2,
|
63 63 | );
|
64 64 | static DELETEMULTIREGIONACCESSPOINTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
65 65 | DELETEMULTIREGIONACCESSPOINTINPUT_SCHEMA_ID,
|
66 66 | ::aws_smithy_schema::ShapeType::Structure,
|
67 67 | &[
|
68 68 | &DELETEMULTIREGIONACCESSPOINTINPUT_MEMBER_ACCOUNT_ID,
|
69 69 | &DELETEMULTIREGIONACCESSPOINTINPUT_MEMBER_CLIENT_TOKEN,
|
70 70 | &DELETEMULTIREGIONACCESSPOINTINPUT_MEMBER_DETAILS,
|
71 71 | ],
|
72 - | );
|
72 + | )
|
73 + | .with_http(aws_smithy_schema::traits::HttpTrait::new(
|
74 + | "POST",
|
75 + | "/v20180820/async-requests/mrap/delete",
|
76 + | None,
|
77 + | ));
|
73 78 | impl DeleteMultiRegionAccessPointInput {
|
74 79 | /// The schema for this shape.
|
75 80 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEMULTIREGIONACCESSPOINTINPUT_SCHEMA;
|
76 81 | }
|
77 82 | impl ::aws_smithy_schema::serde::SerializableStruct for DeleteMultiRegionAccessPointInput {
|
78 83 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
79 84 | fn serialize_members(
|
80 85 | &self,
|
81 86 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
82 87 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
83 88 | if let Some(ref val) = self.account_id {
|
84 89 | ser.write_string(&DELETEMULTIREGIONACCESSPOINTINPUT_MEMBER_ACCOUNT_ID, val)?;
|
85 90 | }
|
86 91 | if let Some(ref val) = self.client_token {
|
87 92 | ser.write_string(&DELETEMULTIREGIONACCESSPOINTINPUT_MEMBER_CLIENT_TOKEN, val)?;
|
88 93 | }
|
89 94 | if let Some(ref val) = self.details {
|
90 95 | ser.write_struct(&DELETEMULTIREGIONACCESSPOINTINPUT_MEMBER_DETAILS, val)?;
|
91 96 | }
|
92 97 | Ok(())
|
93 98 | }
|
94 99 | }
|
95 100 | impl DeleteMultiRegionAccessPointInput {
|
96 101 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
97 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
98 - | deserializer: &mut D,
|
102 + | pub fn deserialize(
|
103 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
99 104 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
100 105 | #[allow(unused_variables, unused_mut)]
|
101 106 | let mut builder = Self::builder();
|
102 107 | #[allow(
|
103 108 | unused_variables,
|
104 109 | unreachable_code,
|
105 110 | clippy::single_match,
|
106 111 | clippy::match_single_binding,
|
107 112 | clippy::diverging_sub_expression
|
108 113 | )]
|
109 - | deserializer.read_struct(&DELETEMULTIREGIONACCESSPOINTINPUT_SCHEMA, (), |_, member, deser| {
|
114 + | deserializer.read_struct(&DELETEMULTIREGIONACCESSPOINTINPUT_SCHEMA, &mut |member, deser| {
|
110 115 | match member.member_index() {
|
111 116 | Some(0) => {
|
112 117 | builder.account_id = Some(deser.read_string(member)?);
|
113 118 | }
|
114 119 | Some(1) => {
|
115 120 | builder.client_token = Some(deser.read_string(member)?);
|
116 121 | }
|
117 122 | Some(2) => {
|
118 123 | builder.details = Some(crate::types::DeleteMultiRegionAccessPointInput::deserialize(deser)?);
|
119 124 | }
|
120 125 | _ => {}
|
121 126 | }
|
122 127 | Ok(())
|
123 128 | })?;
|
129 + | builder.account_id = builder.account_id.or(Some(String::new()));
|
130 + | builder.client_token = builder.client_token.or(Some(String::new()));
|
131 + | builder
|
132 + | .build()
|
133 + | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
134 + | }
|
135 + | }
|
136 + | impl DeleteMultiRegionAccessPointInput {
|
137 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
138 + | /// Header-bound members are read directly from headers, avoiding runtime
|
139 + | /// member iteration overhead. Body members are read via the deserializer.
|
140 + | pub fn deserialize_with_response(
|
141 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
142 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
143 + | _status: u16,
|
144 + | _body: &[u8],
|
145 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
146 + | #[allow(unused_variables, unused_mut)]
|
147 + | let mut builder = Self::builder();
|
148 + | if let Some(val) = headers.get("x-amz-account-id") {
|
149 + | builder.account_id = Some(val.to_string());
|
150 + | }
|
151 + | #[allow(
|
152 + | unused_variables,
|
153 + | unreachable_code,
|
154 + | clippy::single_match,
|
155 + | clippy::match_single_binding,
|
156 + | clippy::diverging_sub_expression
|
157 + | )]
|
158 + | deserializer.read_struct(&DELETEMULTIREGIONACCESSPOINTINPUT_SCHEMA, &mut |member, deser| {
|
159 + | match member.member_index() {
|
160 + | Some(0) => { /* read from headers above */ }
|
161 + | Some(1) => {
|
162 + | builder.client_token = Some(deser.read_string(member)?);
|
163 + | }
|
164 + | Some(2) => {
|
165 + | builder.details = Some(crate::types::DeleteMultiRegionAccessPointInput::deserialize(deser)?);
|
166 + | }
|
167 + | _ => {}
|
168 + | }
|
169 + | Ok(())
|
170 + | })?;
|
124 171 | builder
|
125 172 | .build()
|
126 173 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
127 174 | }
|
128 175 | }
|
129 176 | impl DeleteMultiRegionAccessPointInput {
|
130 177 | /// Creates a new builder-style object to manufacture [`DeleteMultiRegionAccessPointInput`](crate::operation::delete_multi_region_access_point::DeleteMultiRegionAccessPointInput).
|
131 178 | pub fn builder() -> crate::operation::delete_multi_region_access_point::builders::DeleteMultiRegionAccessPointInputBuilder {
|
132 179 | crate::operation::delete_multi_region_access_point::builders::DeleteMultiRegionAccessPointInputBuilder::default()
|
133 180 | }
|