25 25 | "ExportClientVpnClientCertificateRevocationListOutput",
|
26 26 | );
|
27 27 | static EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_MEMBER_CERTIFICATE_REVOCATION_LIST: ::aws_smithy_schema::Schema =
|
28 28 | ::aws_smithy_schema::Schema::new_member(
|
29 29 | ::aws_smithy_schema::ShapeId::from_static(
|
30 30 | "com.amazonaws.ec2.synthetic#ExportClientVpnClientCertificateRevocationListOutput$CertificateRevocationList",
|
31 31 | "com.amazonaws.ec2.synthetic",
|
32 32 | "ExportClientVpnClientCertificateRevocationListOutput",
|
33 33 | ),
|
34 34 | ::aws_smithy_schema::ShapeType::String,
|
35 - | "certificate_revocation_list",
|
35 + | "CertificateRevocationList",
|
36 36 | 0,
|
37 37 | )
|
38 38 | .with_xml_name("certificateRevocationList");
|
39 39 | static EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
40 40 | ::aws_smithy_schema::ShapeId::from_static(
|
41 41 | "com.amazonaws.ec2.synthetic#ExportClientVpnClientCertificateRevocationListOutput$Status",
|
42 42 | "com.amazonaws.ec2.synthetic",
|
43 43 | "ExportClientVpnClientCertificateRevocationListOutput",
|
44 44 | ),
|
45 45 | ::aws_smithy_schema::ShapeType::Structure,
|
46 - | "status",
|
46 + | "Status",
|
47 47 | 1,
|
48 48 | )
|
49 49 | .with_xml_name("status");
|
50 + | static EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema =
|
51 + | ::aws_smithy_schema::Schema::new_member(
|
52 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
53 + | ::aws_smithy_schema::ShapeType::String,
|
54 + | "request_id",
|
55 + | 2,
|
56 + | )
|
57 + | .with_http_header("x-amzn-requestid");
|
50 58 | static EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
51 59 | EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_SCHEMA_ID,
|
52 60 | ::aws_smithy_schema::ShapeType::Structure,
|
53 61 | &[
|
54 62 | &EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_MEMBER_CERTIFICATE_REVOCATION_LIST,
|
55 63 | &EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_MEMBER_STATUS,
|
64 + | &EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_MEMBER__REQUEST_ID,
|
56 65 | ],
|
57 66 | );
|
58 67 | impl ExportClientVpnClientCertificateRevocationListOutput {
|
59 68 | /// The schema for this shape.
|
60 69 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_SCHEMA;
|
61 70 | }
|
62 71 | impl ::aws_smithy_schema::serde::SerializableStruct for ExportClientVpnClientCertificateRevocationListOutput {
|
63 72 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
64 73 | fn serialize_members(
|
65 74 | &self,
|
66 75 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
67 76 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
68 77 | if let Some(ref val) = self.certificate_revocation_list {
|
69 78 | ser.write_string(
|
70 79 | &EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_MEMBER_CERTIFICATE_REVOCATION_LIST,
|
71 80 | val,
|
72 81 | )?;
|
73 82 | }
|
74 83 | if let Some(ref val) = self.status {
|
75 84 | ser.write_struct(&EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_MEMBER_STATUS, val)?;
|
76 85 | }
|
77 86 | Ok(())
|
78 87 | }
|
79 88 | }
|
80 89 | impl ExportClientVpnClientCertificateRevocationListOutput {
|
81 90 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
82 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
83 - | deserializer: &mut D,
|
91 + | pub fn deserialize(
|
92 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
93 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
94 + | #[allow(unused_variables, unused_mut)]
|
95 + | let mut builder = Self::builder();
|
96 + | #[allow(
|
97 + | unused_variables,
|
98 + | unreachable_code,
|
99 + | clippy::single_match,
|
100 + | clippy::match_single_binding,
|
101 + | clippy::diverging_sub_expression
|
102 + | )]
|
103 + | deserializer.read_struct(&EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_SCHEMA, &mut |member, deser| {
|
104 + | match member.member_index() {
|
105 + | Some(0) => {
|
106 + | builder.certificate_revocation_list = Some(deser.read_string(member)?);
|
107 + | }
|
108 + | Some(1) => {
|
109 + | builder.status = Some(crate::types::ClientCertificateRevocationListStatus::deserialize(deser)?);
|
110 + | }
|
111 + | Some(2) => {
|
112 + | builder._request_id = Some(deser.read_string(member)?);
|
113 + | }
|
114 + | _ => {}
|
115 + | }
|
116 + | Ok(())
|
117 + | })?;
|
118 + | Ok(builder.build())
|
119 + | }
|
120 + | }
|
121 + | impl ExportClientVpnClientCertificateRevocationListOutput {
|
122 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
123 + | /// Header-bound members are read directly from headers, avoiding runtime
|
124 + | /// member iteration overhead. Body members are read via the deserializer.
|
125 + | pub fn deserialize_with_response(
|
126 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
127 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
128 + | _status: u16,
|
129 + | _body: &[u8],
|
84 130 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
85 131 | #[allow(unused_variables, unused_mut)]
|
86 132 | let mut builder = Self::builder();
|
133 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
134 + | builder._request_id = Some(val.to_string());
|
135 + | }
|
87 136 | #[allow(
|
88 137 | unused_variables,
|
89 138 | unreachable_code,
|
90 139 | clippy::single_match,
|
91 140 | clippy::match_single_binding,
|
92 141 | clippy::diverging_sub_expression
|
93 142 | )]
|
94 - | deserializer.read_struct(&EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_SCHEMA, (), |_, member, deser| {
|
143 + | deserializer.read_struct(&EXPORTCLIENTVPNCLIENTCERTIFICATEREVOCATIONLISTOUTPUT_SCHEMA, &mut |member, deser| {
|
95 144 | match member.member_index() {
|
96 145 | Some(0) => {
|
97 146 | builder.certificate_revocation_list = Some(deser.read_string(member)?);
|
98 147 | }
|
99 148 | Some(1) => {
|
100 149 | builder.status = Some(crate::types::ClientCertificateRevocationListStatus::deserialize(deser)?);
|
101 150 | }
|
102 151 | _ => {}
|
103 152 | }
|
104 153 | Ok(())
|