50 50 | "com.amazonaws.configservice",
|
51 51 | "EvaluationResult",
|
52 52 | );
|
53 53 | static EVALUATIONRESULT_MEMBER_EVALUATION_RESULT_IDENTIFIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
54 54 | ::aws_smithy_schema::ShapeId::from_static(
|
55 55 | "com.amazonaws.configservice#EvaluationResult$EvaluationResultIdentifier",
|
56 56 | "com.amazonaws.configservice",
|
57 57 | "EvaluationResult",
|
58 58 | ),
|
59 59 | ::aws_smithy_schema::ShapeType::Structure,
|
60 - | "evaluation_result_identifier",
|
60 + | "EvaluationResultIdentifier",
|
61 61 | 0,
|
62 62 | );
|
63 63 | static EVALUATIONRESULT_MEMBER_COMPLIANCE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
64 64 | ::aws_smithy_schema::ShapeId::from_static(
|
65 65 | "com.amazonaws.configservice#EvaluationResult$ComplianceType",
|
66 66 | "com.amazonaws.configservice",
|
67 67 | "EvaluationResult",
|
68 68 | ),
|
69 69 | ::aws_smithy_schema::ShapeType::String,
|
70 - | "compliance_type",
|
70 + | "ComplianceType",
|
71 71 | 1,
|
72 72 | );
|
73 73 | static EVALUATIONRESULT_MEMBER_RESULT_RECORDED_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
74 74 | ::aws_smithy_schema::ShapeId::from_static(
|
75 75 | "com.amazonaws.configservice#EvaluationResult$ResultRecordedTime",
|
76 76 | "com.amazonaws.configservice",
|
77 77 | "EvaluationResult",
|
78 78 | ),
|
79 79 | ::aws_smithy_schema::ShapeType::Timestamp,
|
80 - | "result_recorded_time",
|
80 + | "ResultRecordedTime",
|
81 81 | 2,
|
82 82 | );
|
83 83 | static EVALUATIONRESULT_MEMBER_CONFIG_RULE_INVOKED_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
84 84 | ::aws_smithy_schema::ShapeId::from_static(
|
85 85 | "com.amazonaws.configservice#EvaluationResult$ConfigRuleInvokedTime",
|
86 86 | "com.amazonaws.configservice",
|
87 87 | "EvaluationResult",
|
88 88 | ),
|
89 89 | ::aws_smithy_schema::ShapeType::Timestamp,
|
90 - | "config_rule_invoked_time",
|
90 + | "ConfigRuleInvokedTime",
|
91 91 | 3,
|
92 92 | );
|
93 93 | static EVALUATIONRESULT_MEMBER_ANNOTATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
94 94 | ::aws_smithy_schema::ShapeId::from_static(
|
95 95 | "com.amazonaws.configservice#EvaluationResult$Annotation",
|
96 96 | "com.amazonaws.configservice",
|
97 97 | "EvaluationResult",
|
98 98 | ),
|
99 99 | ::aws_smithy_schema::ShapeType::String,
|
100 - | "annotation",
|
100 + | "Annotation",
|
101 101 | 4,
|
102 102 | );
|
103 103 | static EVALUATIONRESULT_MEMBER_RESULT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
104 104 | ::aws_smithy_schema::ShapeId::from_static(
|
105 105 | "com.amazonaws.configservice#EvaluationResult$ResultToken",
|
106 106 | "com.amazonaws.configservice",
|
107 107 | "EvaluationResult",
|
108 108 | ),
|
109 109 | ::aws_smithy_schema::ShapeType::String,
|
110 - | "result_token",
|
110 + | "ResultToken",
|
111 111 | 5,
|
112 112 | );
|
113 113 | static EVALUATIONRESULT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
114 114 | EVALUATIONRESULT_SCHEMA_ID,
|
115 115 | ::aws_smithy_schema::ShapeType::Structure,
|
116 116 | &[
|
117 117 | &EVALUATIONRESULT_MEMBER_EVALUATION_RESULT_IDENTIFIER,
|
118 118 | &EVALUATIONRESULT_MEMBER_COMPLIANCE_TYPE,
|
119 119 | &EVALUATIONRESULT_MEMBER_RESULT_RECORDED_TIME,
|
120 120 | &EVALUATIONRESULT_MEMBER_CONFIG_RULE_INVOKED_TIME,
|
121 121 | &EVALUATIONRESULT_MEMBER_ANNOTATION,
|
122 122 | &EVALUATIONRESULT_MEMBER_RESULT_TOKEN,
|
123 123 | ],
|
124 124 | );
|
125 125 | impl EvaluationResult {
|
126 126 | /// The schema for this shape.
|
127 127 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &EVALUATIONRESULT_SCHEMA;
|
128 128 | }
|
129 129 | impl ::aws_smithy_schema::serde::SerializableStruct for EvaluationResult {
|
130 130 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
131 131 | fn serialize_members(
|
132 132 | &self,
|
133 133 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
134 134 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
135 135 | if let Some(ref val) = self.evaluation_result_identifier {
|
136 136 | ser.write_struct(&EVALUATIONRESULT_MEMBER_EVALUATION_RESULT_IDENTIFIER, val)?;
|
137 137 | }
|
138 138 | if let Some(ref val) = self.compliance_type {
|
139 139 | ser.write_string(&EVALUATIONRESULT_MEMBER_COMPLIANCE_TYPE, val.as_str())?;
|
140 140 | }
|
141 141 | if let Some(ref val) = self.result_recorded_time {
|
142 142 | ser.write_timestamp(&EVALUATIONRESULT_MEMBER_RESULT_RECORDED_TIME, val)?;
|
143 143 | }
|
144 144 | if let Some(ref val) = self.config_rule_invoked_time {
|
145 145 | ser.write_timestamp(&EVALUATIONRESULT_MEMBER_CONFIG_RULE_INVOKED_TIME, val)?;
|
146 146 | }
|
147 147 | if let Some(ref val) = self.annotation {
|
148 148 | ser.write_string(&EVALUATIONRESULT_MEMBER_ANNOTATION, val)?;
|
149 149 | }
|
150 150 | if let Some(ref val) = self.result_token {
|
151 151 | ser.write_string(&EVALUATIONRESULT_MEMBER_RESULT_TOKEN, val)?;
|
152 152 | }
|
153 153 | Ok(())
|
154 154 | }
|
155 155 | }
|
156 156 | impl EvaluationResult {
|
157 157 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
158 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
159 - | deserializer: &mut D,
|
158 + | pub fn deserialize(
|
159 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
160 160 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
161 161 | #[allow(unused_variables, unused_mut)]
|
162 162 | let mut builder = Self::builder();
|
163 163 | #[allow(
|
164 164 | unused_variables,
|
165 165 | unreachable_code,
|
166 166 | clippy::single_match,
|
167 167 | clippy::match_single_binding,
|
168 168 | clippy::diverging_sub_expression
|
169 169 | )]
|
170 - | deserializer.read_struct(&EVALUATIONRESULT_SCHEMA, (), |_, member, deser| {
|
170 + | deserializer.read_struct(&EVALUATIONRESULT_SCHEMA, &mut |member, deser| {
|
171 171 | match member.member_index() {
|
172 172 | Some(0) => {
|
173 173 | builder.evaluation_result_identifier = Some(crate::types::EvaluationResultIdentifier::deserialize(deser)?);
|
174 174 | }
|
175 175 | Some(1) => {
|
176 176 | builder.compliance_type = Some(crate::types::ComplianceType::from(deser.read_string(member)?.as_str()));
|
177 177 | }
|
178 178 | Some(2) => {
|
179 179 | builder.result_recorded_time = Some(deser.read_timestamp(member)?);
|
180 180 | }
|
181 181 | Some(3) => {
|
182 182 | builder.config_rule_invoked_time = Some(deser.read_timestamp(member)?);
|
183 183 | }
|
184 184 | Some(4) => {
|
185 185 | builder.annotation = Some(deser.read_string(member)?);
|
186 186 | }
|
187 187 | Some(5) => {
|
188 188 | builder.result_token = Some(deser.read_string(member)?);
|
189 189 | }
|
190 190 | _ => {}
|
191 191 | }
|
192 192 | Ok(())
|
193 193 | })?;
|
194 194 | Ok(builder.build())
|
195 195 | }
|
196 196 | }
|
197 + | impl EvaluationResult {
|
198 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
199 + | pub fn deserialize_with_response(
|
200 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
201 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
202 + | _status: u16,
|
203 + | _body: &[u8],
|
204 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
205 + | Self::deserialize(deserializer)
|
206 + | }
|
207 + | }
|
197 208 | impl EvaluationResult {
|
198 209 | /// Creates a new builder-style object to manufacture [`EvaluationResult`](crate::types::EvaluationResult).
|
199 210 | pub fn builder() -> crate::types::builders::EvaluationResultBuilder {
|
200 211 | crate::types::builders::EvaluationResultBuilder::default()
|
201 212 | }
|
202 213 | }
|
203 214 |
|
204 215 | /// A builder for [`EvaluationResult`](crate::types::EvaluationResult).
|
205 216 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
206 217 | #[non_exhaustive]
|