1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | #[allow(missing_docs)] // documentation missing in model
|
3 + | #[non_exhaustive]
|
4 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5 + | pub struct UpdateOpsItemInput {
|
6 + | /// <p>User-defined text that contains information about the OpsItem, in Markdown format.</p>
|
7 + | pub description: ::std::option::Option<::std::string::String>,
|
8 + | /// <p>Add new keys or edit existing key-value pairs of the OperationalData map in the OpsItem object.</p>
|
9 + | /// <p>Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.</p><important>
|
10 + | /// <p>Operational data keys <i>can't</i> begin with the following: <code>amazon</code>, <code>aws</code>, <code>amzn</code>, <code>ssm</code>, <code>/amazon</code>, <code>/aws</code>, <code>/amzn</code>, <code>/ssm</code>.</p>
|
11 + | /// </important>
|
12 + | /// <p>You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the <code>DescribeOpsItems</code> API operation) can view and search on the specified data. Operational data that isn't searchable is only viewable by users who have access to the OpsItem (as provided by the <code>GetOpsItem</code> API operation).</p>
|
13 + | /// <p>Use the <code>/aws/resources</code> key in OperationalData to specify a related resource in the request. Use the <code>/aws/automations</code> key in OperationalData to associate an Automation runbook with the OpsItem. To view Amazon Web Services CLI example commands that use these keys, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-manually-create-OpsItems.html">Creating OpsItems manually</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
14 + | pub operational_data: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::OpsItemDataValue>>,
|
15 + | /// <p>Keys that you want to remove from the OperationalData map.</p>
|
16 + | pub operational_data_to_delete: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
17 + | /// <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.</p>
|
18 + | pub notifications: ::std::option::Option<::std::vec::Vec<crate::types::OpsItemNotification>>,
|
19 + | /// <p>The importance of this OpsItem in relation to other OpsItems in the system.</p>
|
20 + | pub priority: ::std::option::Option<i32>,
|
21 + | /// <p>One or more OpsItems that share something in common with the current OpsItems. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.</p>
|
22 + | pub related_ops_items: ::std::option::Option<::std::vec::Vec<crate::types::RelatedOpsItem>>,
|
23 + | /// <p>The OpsItem status. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-working-with-OpsItems-editing-details.html">Editing OpsItem details</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
24 + | pub status: ::std::option::Option<crate::types::OpsItemStatus>,
|
25 + | /// <p>The ID of the OpsItem.</p>
|
26 + | pub ops_item_id: ::std::option::Option<::std::string::String>,
|
27 + | /// <p>A short heading that describes the nature of the OpsItem and the impacted resource.</p>
|
28 + | pub title: ::std::option::Option<::std::string::String>,
|
29 + | /// <p>Specify a new category for an OpsItem.</p>
|
30 + | pub category: ::std::option::Option<::std::string::String>,
|
31 + | /// <p>Specify a new severity for an OpsItem.</p>
|
32 + | pub severity: ::std::option::Option<::std::string::String>,
|
33 + | /// <p>The time a runbook workflow started. Currently reported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
34 + | pub actual_start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
35 + | /// <p>The time a runbook workflow ended. Currently reported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
36 + | pub actual_end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
37 + | /// <p>The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
38 + | pub planned_start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
39 + | /// <p>The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
40 + | pub planned_end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
41 + | /// <p>The OpsItem Amazon Resource Name (ARN).</p>
|
42 + | pub ops_item_arn: ::std::option::Option<::std::string::String>,
|
43 + | }
|
44 + | impl UpdateOpsItemInput {
|
45 + | /// <p>User-defined text that contains information about the OpsItem, in Markdown format.</p>
|
46 + | pub fn description(&self) -> ::std::option::Option<&str> {
|
47 + | self.description.as_deref()
|
48 + | }
|
49 + | /// <p>Add new keys or edit existing key-value pairs of the OperationalData map in the OpsItem object.</p>
|
50 + | /// <p>Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.</p><important>
|
51 + | /// <p>Operational data keys <i>can't</i> begin with the following: <code>amazon</code>, <code>aws</code>, <code>amzn</code>, <code>ssm</code>, <code>/amazon</code>, <code>/aws</code>, <code>/amzn</code>, <code>/ssm</code>.</p>
|
52 + | /// </important>
|
53 + | /// <p>You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the <code>DescribeOpsItems</code> API operation) can view and search on the specified data. Operational data that isn't searchable is only viewable by users who have access to the OpsItem (as provided by the <code>GetOpsItem</code> API operation).</p>
|
54 + | /// <p>Use the <code>/aws/resources</code> key in OperationalData to specify a related resource in the request. Use the <code>/aws/automations</code> key in OperationalData to associate an Automation runbook with the OpsItem. To view Amazon Web Services CLI example commands that use these keys, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-manually-create-OpsItems.html">Creating OpsItems manually</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
55 + | pub fn operational_data(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::OpsItemDataValue>> {
|
56 + | self.operational_data.as_ref()
|
57 + | }
|
58 + | /// <p>Keys that you want to remove from the OperationalData map.</p>
|
59 + | ///
|
60 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.operational_data_to_delete.is_none()`.
|
61 + | pub fn operational_data_to_delete(&self) -> &[::std::string::String] {
|
62 + | self.operational_data_to_delete.as_deref().unwrap_or_default()
|
63 + | }
|
64 + | /// <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.</p>
|
65 + | ///
|
66 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.notifications.is_none()`.
|
67 + | pub fn notifications(&self) -> &[crate::types::OpsItemNotification] {
|
68 + | self.notifications.as_deref().unwrap_or_default()
|
69 + | }
|
70 + | /// <p>The importance of this OpsItem in relation to other OpsItems in the system.</p>
|
71 + | pub fn priority(&self) -> ::std::option::Option<i32> {
|
72 + | self.priority
|
73 + | }
|
74 + | /// <p>One or more OpsItems that share something in common with the current OpsItems. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.</p>
|
75 + | ///
|
76 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.related_ops_items.is_none()`.
|
77 + | pub fn related_ops_items(&self) -> &[crate::types::RelatedOpsItem] {
|
78 + | self.related_ops_items.as_deref().unwrap_or_default()
|
79 + | }
|
80 + | /// <p>The OpsItem status. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-working-with-OpsItems-editing-details.html">Editing OpsItem details</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
81 + | pub fn status(&self) -> ::std::option::Option<&crate::types::OpsItemStatus> {
|
82 + | self.status.as_ref()
|
83 + | }
|
84 + | /// <p>The ID of the OpsItem.</p>
|
85 + | pub fn ops_item_id(&self) -> ::std::option::Option<&str> {
|
86 + | self.ops_item_id.as_deref()
|
87 + | }
|
88 + | /// <p>A short heading that describes the nature of the OpsItem and the impacted resource.</p>
|
89 + | pub fn title(&self) -> ::std::option::Option<&str> {
|
90 + | self.title.as_deref()
|
91 + | }
|
92 + | /// <p>Specify a new category for an OpsItem.</p>
|
93 + | pub fn category(&self) -> ::std::option::Option<&str> {
|
94 + | self.category.as_deref()
|
95 + | }
|
96 + | /// <p>Specify a new severity for an OpsItem.</p>
|
97 + | pub fn severity(&self) -> ::std::option::Option<&str> {
|
98 + | self.severity.as_deref()
|
99 + | }
|
100 + | /// <p>The time a runbook workflow started. Currently reported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
101 + | pub fn actual_start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
102 + | self.actual_start_time.as_ref()
|
103 + | }
|
104 + | /// <p>The time a runbook workflow ended. Currently reported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
105 + | pub fn actual_end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
106 + | self.actual_end_time.as_ref()
|
107 + | }
|
108 + | /// <p>The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
109 + | pub fn planned_start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
110 + | self.planned_start_time.as_ref()
|
111 + | }
|
112 + | /// <p>The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
113 + | pub fn planned_end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
|
114 + | self.planned_end_time.as_ref()
|
115 + | }
|
116 + | /// <p>The OpsItem Amazon Resource Name (ARN).</p>
|
117 + | pub fn ops_item_arn(&self) -> ::std::option::Option<&str> {
|
118 + | self.ops_item_arn.as_deref()
|
119 + | }
|
120 + | }
|
121 + | static UPDATEOPSITEMINPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
122 + | ::aws_smithy_schema::ShapeId::from_parts(
|
123 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$Description",
|
124 + | "com.amazonaws.ssm.synthetic",
|
125 + | "UpdateOpsItemInput",
|
126 + | ),
|
127 + | ::aws_smithy_schema::ShapeType::String,
|
128 + | "Description",
|
129 + | 0,
|
130 + | );
|
131 + | static UPDATEOPSITEMINPUT_MEMBER_OPERATIONAL_DATA_KEY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
132 + | ::aws_smithy_schema::ShapeId::from_parts(
|
133 + | "com.amazonaws.ssm#OpsItemOperationalData$key",
|
134 + | "com.amazonaws.ssm",
|
135 + | "OpsItemOperationalData",
|
136 + | ),
|
137 + | ::aws_smithy_schema::ShapeType::String,
|
138 + | "key",
|
139 + | 0,
|
140 + | );
|
141 + | static UPDATEOPSITEMINPUT_MEMBER_OPERATIONAL_DATA_VALUE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
142 + | ::aws_smithy_schema::ShapeId::from_parts(
|
143 + | "com.amazonaws.ssm#OpsItemOperationalData$value",
|
144 + | "com.amazonaws.ssm",
|
145 + | "OpsItemOperationalData",
|
146 + | ),
|
147 + | ::aws_smithy_schema::ShapeType::Structure,
|
148 + | "value",
|
149 + | 1,
|
150 + | );
|
151 + | static UPDATEOPSITEMINPUT_MEMBER_OPERATIONAL_DATA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
152 + | ::aws_smithy_schema::ShapeId::from_parts(
|
153 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$OperationalData",
|
154 + | "com.amazonaws.ssm.synthetic",
|
155 + | "UpdateOpsItemInput",
|
156 + | ),
|
157 + | ::aws_smithy_schema::ShapeType::Map,
|
158 + | "OperationalData",
|
159 + | 1,
|
160 + | )
|
161 + | .with_map_members(
|
162 + | &UPDATEOPSITEMINPUT_MEMBER_OPERATIONAL_DATA_KEY,
|
163 + | &UPDATEOPSITEMINPUT_MEMBER_OPERATIONAL_DATA_VALUE,
|
164 + | );
|
165 + | static UPDATEOPSITEMINPUT_MEMBER_OPERATIONAL_DATA_TO_DELETE_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
166 + | ::aws_smithy_schema::ShapeId::from_parts(
|
167 + | "com.amazonaws.ssm#OpsItemOpsDataKeysList$member",
|
168 + | "com.amazonaws.ssm",
|
169 + | "OpsItemOpsDataKeysList",
|
170 + | ),
|
171 + | ::aws_smithy_schema::ShapeType::String,
|
172 + | "member",
|
173 + | 0,
|
174 + | );
|
175 + | static UPDATEOPSITEMINPUT_MEMBER_OPERATIONAL_DATA_TO_DELETE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
176 + | ::aws_smithy_schema::ShapeId::from_parts(
|
177 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$OperationalDataToDelete",
|
178 + | "com.amazonaws.ssm.synthetic",
|
179 + | "UpdateOpsItemInput",
|
180 + | ),
|
181 + | ::aws_smithy_schema::ShapeType::List,
|
182 + | "OperationalDataToDelete",
|
183 + | 2,
|
184 + | )
|
185 + | .with_list_member(&UPDATEOPSITEMINPUT_MEMBER_OPERATIONAL_DATA_TO_DELETE_MEMBER);
|
186 + | static UPDATEOPSITEMINPUT_MEMBER_NOTIFICATIONS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
187 + | ::aws_smithy_schema::ShapeId::from_parts(
|
188 + | "com.amazonaws.ssm#OpsItemNotifications$member",
|
189 + | "com.amazonaws.ssm",
|
190 + | "OpsItemNotifications",
|
191 + | ),
|
192 + | ::aws_smithy_schema::ShapeType::Structure,
|
193 + | "member",
|
194 + | 0,
|
195 + | );
|
196 + | static UPDATEOPSITEMINPUT_MEMBER_NOTIFICATIONS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
197 + | ::aws_smithy_schema::ShapeId::from_parts(
|
198 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$Notifications",
|
199 + | "com.amazonaws.ssm.synthetic",
|
200 + | "UpdateOpsItemInput",
|
201 + | ),
|
202 + | ::aws_smithy_schema::ShapeType::List,
|
203 + | "Notifications",
|
204 + | 3,
|
205 + | )
|
206 + | .with_list_member(&UPDATEOPSITEMINPUT_MEMBER_NOTIFICATIONS_MEMBER);
|
207 + | static UPDATEOPSITEMINPUT_MEMBER_PRIORITY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
208 + | ::aws_smithy_schema::ShapeId::from_parts(
|
209 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$Priority",
|
210 + | "com.amazonaws.ssm.synthetic",
|
211 + | "UpdateOpsItemInput",
|
212 + | ),
|
213 + | ::aws_smithy_schema::ShapeType::Integer,
|
214 + | "Priority",
|
215 + | 4,
|
216 + | );
|
217 + | static UPDATEOPSITEMINPUT_MEMBER_RELATED_OPS_ITEMS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
218 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#RelatedOpsItems$member", "com.amazonaws.ssm", "RelatedOpsItems"),
|
219 + | ::aws_smithy_schema::ShapeType::Structure,
|
220 + | "member",
|
221 + | 0,
|
222 + | );
|
223 + | static UPDATEOPSITEMINPUT_MEMBER_RELATED_OPS_ITEMS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
224 + | ::aws_smithy_schema::ShapeId::from_parts(
|
225 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$RelatedOpsItems",
|
226 + | "com.amazonaws.ssm.synthetic",
|
227 + | "UpdateOpsItemInput",
|
228 + | ),
|
229 + | ::aws_smithy_schema::ShapeType::List,
|
230 + | "RelatedOpsItems",
|
231 + | 5,
|
232 + | )
|
233 + | .with_list_member(&UPDATEOPSITEMINPUT_MEMBER_RELATED_OPS_ITEMS_MEMBER);
|
234 + | static UPDATEOPSITEMINPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
235 + | ::aws_smithy_schema::ShapeId::from_parts(
|
236 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$Status",
|
237 + | "com.amazonaws.ssm.synthetic",
|
238 + | "UpdateOpsItemInput",
|
239 + | ),
|
240 + | ::aws_smithy_schema::ShapeType::String,
|
241 + | "Status",
|
242 + | 6,
|
243 + | );
|
244 + | static UPDATEOPSITEMINPUT_MEMBER_OPS_ITEM_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
245 + | ::aws_smithy_schema::ShapeId::from_parts(
|
246 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$OpsItemId",
|
247 + | "com.amazonaws.ssm.synthetic",
|
248 + | "UpdateOpsItemInput",
|
249 + | ),
|
250 + | ::aws_smithy_schema::ShapeType::String,
|
251 + | "OpsItemId",
|
252 + | 7,
|
253 + | );
|
254 + | static UPDATEOPSITEMINPUT_MEMBER_TITLE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
255 + | ::aws_smithy_schema::ShapeId::from_parts(
|
256 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$Title",
|
257 + | "com.amazonaws.ssm.synthetic",
|
258 + | "UpdateOpsItemInput",
|
259 + | ),
|
260 + | ::aws_smithy_schema::ShapeType::String,
|
261 + | "Title",
|
262 + | 8,
|
263 + | );
|
264 + | static UPDATEOPSITEMINPUT_MEMBER_CATEGORY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
265 + | ::aws_smithy_schema::ShapeId::from_parts(
|
266 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$Category",
|
267 + | "com.amazonaws.ssm.synthetic",
|
268 + | "UpdateOpsItemInput",
|
269 + | ),
|
270 + | ::aws_smithy_schema::ShapeType::String,
|
271 + | "Category",
|
272 + | 9,
|
273 + | );
|
274 + | static UPDATEOPSITEMINPUT_MEMBER_SEVERITY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
275 + | ::aws_smithy_schema::ShapeId::from_parts(
|
276 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$Severity",
|
277 + | "com.amazonaws.ssm.synthetic",
|
278 + | "UpdateOpsItemInput",
|
279 + | ),
|
280 + | ::aws_smithy_schema::ShapeType::String,
|
281 + | "Severity",
|
282 + | 10,
|
283 + | );
|
284 + | static UPDATEOPSITEMINPUT_MEMBER_ACTUAL_START_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
285 + | ::aws_smithy_schema::ShapeId::from_parts(
|
286 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$ActualStartTime",
|
287 + | "com.amazonaws.ssm.synthetic",
|
288 + | "UpdateOpsItemInput",
|
289 + | ),
|
290 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
291 + | "ActualStartTime",
|
292 + | 11,
|
293 + | );
|
294 + | static UPDATEOPSITEMINPUT_MEMBER_ACTUAL_END_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
295 + | ::aws_smithy_schema::ShapeId::from_parts(
|
296 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$ActualEndTime",
|
297 + | "com.amazonaws.ssm.synthetic",
|
298 + | "UpdateOpsItemInput",
|
299 + | ),
|
300 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
301 + | "ActualEndTime",
|
302 + | 12,
|
303 + | );
|
304 + | static UPDATEOPSITEMINPUT_MEMBER_PLANNED_START_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
305 + | ::aws_smithy_schema::ShapeId::from_parts(
|
306 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$PlannedStartTime",
|
307 + | "com.amazonaws.ssm.synthetic",
|
308 + | "UpdateOpsItemInput",
|
309 + | ),
|
310 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
311 + | "PlannedStartTime",
|
312 + | 13,
|
313 + | );
|
314 + | static UPDATEOPSITEMINPUT_MEMBER_PLANNED_END_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
315 + | ::aws_smithy_schema::ShapeId::from_parts(
|
316 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$PlannedEndTime",
|
317 + | "com.amazonaws.ssm.synthetic",
|
318 + | "UpdateOpsItemInput",
|
319 + | ),
|
320 + | ::aws_smithy_schema::ShapeType::Timestamp,
|
321 + | "PlannedEndTime",
|
322 + | 14,
|
323 + | );
|
324 + | static UPDATEOPSITEMINPUT_MEMBER_OPS_ITEM_ARN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
325 + | ::aws_smithy_schema::ShapeId::from_parts(
|
326 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput$OpsItemArn",
|
327 + | "com.amazonaws.ssm.synthetic",
|
328 + | "UpdateOpsItemInput",
|
329 + | ),
|
330 + | ::aws_smithy_schema::ShapeType::String,
|
331 + | "OpsItemArn",
|
332 + | 15,
|
333 + | );
|
334 + | static UPDATEOPSITEMINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
335 + | ::aws_smithy_schema::ShapeId::from_parts(
|
336 + | "com.amazonaws.ssm.synthetic#UpdateOpsItemInput",
|
337 + | "com.amazonaws.ssm.synthetic",
|
338 + | "UpdateOpsItemInput",
|
339 + | ),
|
340 + | ::aws_smithy_schema::ShapeType::Structure,
|
341 + | &[
|
342 + | &UPDATEOPSITEMINPUT_MEMBER_DESCRIPTION,
|
343 + | &UPDATEOPSITEMINPUT_MEMBER_OPERATIONAL_DATA,
|
344 + | &UPDATEOPSITEMINPUT_MEMBER_OPERATIONAL_DATA_TO_DELETE,
|
345 + | &UPDATEOPSITEMINPUT_MEMBER_NOTIFICATIONS,
|
346 + | &UPDATEOPSITEMINPUT_MEMBER_PRIORITY,
|
347 + | &UPDATEOPSITEMINPUT_MEMBER_RELATED_OPS_ITEMS,
|
348 + | &UPDATEOPSITEMINPUT_MEMBER_STATUS,
|
349 + | &UPDATEOPSITEMINPUT_MEMBER_OPS_ITEM_ID,
|
350 + | &UPDATEOPSITEMINPUT_MEMBER_TITLE,
|
351 + | &UPDATEOPSITEMINPUT_MEMBER_CATEGORY,
|
352 + | &UPDATEOPSITEMINPUT_MEMBER_SEVERITY,
|
353 + | &UPDATEOPSITEMINPUT_MEMBER_ACTUAL_START_TIME,
|
354 + | &UPDATEOPSITEMINPUT_MEMBER_ACTUAL_END_TIME,
|
355 + | &UPDATEOPSITEMINPUT_MEMBER_PLANNED_START_TIME,
|
356 + | &UPDATEOPSITEMINPUT_MEMBER_PLANNED_END_TIME,
|
357 + | &UPDATEOPSITEMINPUT_MEMBER_OPS_ITEM_ARN,
|
358 + | ],
|
359 + | )
|
360 + | .with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
|
361 + | .with_original_name("UpdateOpsItemRequest");
|
362 + | impl UpdateOpsItemInput {
|
363 + | /// The schema for this shape.
|
364 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &UPDATEOPSITEMINPUT_SCHEMA;
|
365 + | }
|
366 + | impl ::aws_smithy_schema::serde::SerializableStruct for UpdateOpsItemInput {
|
367 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
368 + | fn serialize_members(
|
369 + | &self,
|
370 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
371 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
372 + | if let Some(ref val) = self.description {
|
373 + | ser.write_string(&UPDATEOPSITEMINPUT_MEMBER_DESCRIPTION, val)?;
|
374 + | }
|
375 + | if let Some(ref val) = self.operational_data {
|
376 + | ser.write_map(
|
377 + | &UPDATEOPSITEMINPUT_MEMBER_OPERATIONAL_DATA,
|
378 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
379 + | for (key, value) in val {
|
380 + | ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
|
381 + | ser.write_struct(crate::types::OpsItemDataValue::SCHEMA, value)?;
|
382 + | }
|
383 + | Ok(())
|
384 + | },
|
385 + | )?;
|
386 + | }
|
387 + | if let Some(ref val) = self.operational_data_to_delete {
|
388 + | ser.write_list(
|
389 + | &UPDATEOPSITEMINPUT_MEMBER_OPERATIONAL_DATA_TO_DELETE,
|
390 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
391 + | for item in val {
|
392 + | ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
|
393 + | }
|
394 + | Ok(())
|
395 + | },
|
396 + | )?;
|
397 + | }
|
398 + | if let Some(ref val) = self.notifications {
|
399 + | ser.write_list(
|
400 + | &UPDATEOPSITEMINPUT_MEMBER_NOTIFICATIONS,
|
401 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
402 + | for item in val {
|
403 + | ser.write_struct(crate::types::OpsItemNotification::SCHEMA, item)?;
|
404 + | }
|
405 + | Ok(())
|
406 + | },
|
407 + | )?;
|
408 + | }
|
409 + | if let Some(ref val) = self.priority {
|
410 + | ser.write_integer(&UPDATEOPSITEMINPUT_MEMBER_PRIORITY, *val)?;
|
411 + | }
|
412 + | if let Some(ref val) = self.related_ops_items {
|
413 + | ser.write_list(
|
414 + | &UPDATEOPSITEMINPUT_MEMBER_RELATED_OPS_ITEMS,
|
415 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
416 + | for item in val {
|
417 + | ser.write_struct(crate::types::RelatedOpsItem::SCHEMA, item)?;
|
418 + | }
|
419 + | Ok(())
|
420 + | },
|
421 + | )?;
|
422 + | }
|
423 + | if let Some(ref val) = self.status {
|
424 + | ser.write_string(&UPDATEOPSITEMINPUT_MEMBER_STATUS, val.as_str())?;
|
425 + | }
|
426 + | if let Some(ref val) = self.ops_item_id {
|
427 + | ser.write_string(&UPDATEOPSITEMINPUT_MEMBER_OPS_ITEM_ID, val)?;
|
428 + | }
|
429 + | if let Some(ref val) = self.title {
|
430 + | ser.write_string(&UPDATEOPSITEMINPUT_MEMBER_TITLE, val)?;
|
431 + | }
|
432 + | if let Some(ref val) = self.category {
|
433 + | ser.write_string(&UPDATEOPSITEMINPUT_MEMBER_CATEGORY, val)?;
|
434 + | }
|
435 + | if let Some(ref val) = self.severity {
|
436 + | ser.write_string(&UPDATEOPSITEMINPUT_MEMBER_SEVERITY, val)?;
|
437 + | }
|
438 + | if let Some(ref val) = self.actual_start_time {
|
439 + | ser.write_timestamp(&UPDATEOPSITEMINPUT_MEMBER_ACTUAL_START_TIME, val)?;
|
440 + | }
|
441 + | if let Some(ref val) = self.actual_end_time {
|
442 + | ser.write_timestamp(&UPDATEOPSITEMINPUT_MEMBER_ACTUAL_END_TIME, val)?;
|
443 + | }
|
444 + | if let Some(ref val) = self.planned_start_time {
|
445 + | ser.write_timestamp(&UPDATEOPSITEMINPUT_MEMBER_PLANNED_START_TIME, val)?;
|
446 + | }
|
447 + | if let Some(ref val) = self.planned_end_time {
|
448 + | ser.write_timestamp(&UPDATEOPSITEMINPUT_MEMBER_PLANNED_END_TIME, val)?;
|
449 + | }
|
450 + | if let Some(ref val) = self.ops_item_arn {
|
451 + | ser.write_string(&UPDATEOPSITEMINPUT_MEMBER_OPS_ITEM_ARN, val)?;
|
452 + | }
|
453 + | Ok(())
|
454 + | }
|
455 + | }
|
456 + | impl UpdateOpsItemInput {
|
457 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
458 + | pub fn deserialize(
|
459 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
460 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
461 + | #[allow(unused_variables, unused_mut)]
|
462 + | let mut builder = Self::builder();
|
463 + | #[allow(
|
464 + | unused_variables,
|
465 + | unreachable_code,
|
466 + | clippy::single_match,
|
467 + | clippy::match_single_binding,
|
468 + | clippy::diverging_sub_expression
|
469 + | )]
|
470 + | deserializer.read_struct(&UPDATEOPSITEMINPUT_SCHEMA, &mut |member, deser| {
|
471 + | match member.member_index() {
|
472 + | Some(0) => {
|
473 + | if deser.is_null() {
|
474 + | deser.read_null()?;
|
475 + | } else {
|
476 + | builder.description = Some(deser.read_string(member)?);
|
477 + | }
|
478 + | }
|
479 + | Some(1) => {
|
480 + | if deser.is_null() {
|
481 + | deser.read_null()?;
|
482 + | } else {
|
483 + | builder.operational_data = Some({
|
484 + | let mut container = std::collections::HashMap::new();
|
485 + | deser.read_map(member, &mut |key, deser| {
|
486 + | container.insert(key, crate::types::OpsItemDataValue::deserialize(deser)?);
|
487 + | Ok(())
|
488 + | })?;
|
489 + | container
|
490 + | });
|
491 + | }
|
492 + | }
|
493 + | Some(2) => {
|
494 + | if deser.is_null() {
|
495 + | deser.read_null()?;
|
496 + | } else {
|
497 + | builder.operational_data_to_delete = Some(deser.read_string_list(member)?);
|
498 + | }
|
499 + | }
|
500 + | Some(3) => {
|
501 + | if deser.is_null() {
|
502 + | deser.read_null()?;
|
503 + | } else {
|
504 + | builder.notifications = Some({
|
505 + | let mut container = Vec::new();
|
506 + | deser.read_list(member, &mut |deser| {
|
507 + | container.push(crate::types::OpsItemNotification::deserialize(deser)?);
|
508 + | Ok(())
|
509 + | })?;
|
510 + | container
|
511 + | });
|
512 + | }
|
513 + | }
|
514 + | Some(4) => {
|
515 + | if deser.is_null() {
|
516 + | deser.read_null()?;
|
517 + | } else {
|
518 + | builder.priority = Some(deser.read_integer(member)?);
|
519 + | }
|
520 + | }
|
521 + | Some(5) => {
|
522 + | if deser.is_null() {
|
523 + | deser.read_null()?;
|
524 + | } else {
|
525 + | builder.related_ops_items = Some({
|
526 + | let mut container = Vec::new();
|
527 + | deser.read_list(member, &mut |deser| {
|
528 + | container.push(crate::types::RelatedOpsItem::deserialize(deser)?);
|
529 + | Ok(())
|
530 + | })?;
|
531 + | container
|
532 + | });
|
533 + | }
|
534 + | }
|
535 + | Some(6) => {
|
536 + | if deser.is_null() {
|
537 + | deser.read_null()?;
|
538 + | } else {
|
539 + | builder.status = Some(crate::types::OpsItemStatus::from(deser.read_string(member)?.as_str()));
|
540 + | }
|
541 + | }
|
542 + | Some(7) => {
|
543 + | if deser.is_null() {
|
544 + | deser.read_null()?;
|
545 + | } else {
|
546 + | builder.ops_item_id = Some(deser.read_string(member)?);
|
547 + | }
|
548 + | }
|
549 + | Some(8) => {
|
550 + | if deser.is_null() {
|
551 + | deser.read_null()?;
|
552 + | } else {
|
553 + | builder.title = Some(deser.read_string(member)?);
|
554 + | }
|
555 + | }
|
556 + | Some(9) => {
|
557 + | if deser.is_null() {
|
558 + | deser.read_null()?;
|
559 + | } else {
|
560 + | builder.category = Some(deser.read_string(member)?);
|
561 + | }
|
562 + | }
|
563 + | Some(10) => {
|
564 + | if deser.is_null() {
|
565 + | deser.read_null()?;
|
566 + | } else {
|
567 + | builder.severity = Some(deser.read_string(member)?);
|
568 + | }
|
569 + | }
|
570 + | Some(11) => {
|
571 + | if deser.is_null() {
|
572 + | deser.read_null()?;
|
573 + | } else {
|
574 + | builder.actual_start_time = Some(deser.read_timestamp(member)?);
|
575 + | }
|
576 + | }
|
577 + | Some(12) => {
|
578 + | if deser.is_null() {
|
579 + | deser.read_null()?;
|
580 + | } else {
|
581 + | builder.actual_end_time = Some(deser.read_timestamp(member)?);
|
582 + | }
|
583 + | }
|
584 + | Some(13) => {
|
585 + | if deser.is_null() {
|
586 + | deser.read_null()?;
|
587 + | } else {
|
588 + | builder.planned_start_time = Some(deser.read_timestamp(member)?);
|
589 + | }
|
590 + | }
|
591 + | Some(14) => {
|
592 + | if deser.is_null() {
|
593 + | deser.read_null()?;
|
594 + | } else {
|
595 + | builder.planned_end_time = Some(deser.read_timestamp(member)?);
|
596 + | }
|
597 + | }
|
598 + | Some(15) => {
|
599 + | if deser.is_null() {
|
600 + | deser.read_null()?;
|
601 + | } else {
|
602 + | builder.ops_item_arn = Some(deser.read_string(member)?);
|
603 + | }
|
604 + | }
|
605 + | _ => {}
|
606 + | }
|
607 + | Ok(())
|
608 + | })?;
|
609 + | builder.ops_item_id = builder.ops_item_id.or(Some(String::new()));
|
610 + | builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
|
611 + | }
|
612 + | }
|
613 + | impl UpdateOpsItemInput {
|
614 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
615 + | pub fn deserialize_with_response(
|
616 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
617 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
618 + | _status: u16,
|
619 + | _body: &[u8],
|
620 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
621 + | Self::deserialize(deserializer)
|
622 + | }
|
623 + | }
|
624 + | impl UpdateOpsItemInput {
|
625 + | /// Creates a new builder-style object to manufacture [`UpdateOpsItemInput`](crate::operation::update_ops_item::UpdateOpsItemInput).
|
626 + | pub fn builder() -> crate::operation::update_ops_item::builders::UpdateOpsItemInputBuilder {
|
627 + | crate::operation::update_ops_item::builders::UpdateOpsItemInputBuilder::default()
|
628 + | }
|
629 + | }
|
630 + |
|
631 + | /// A builder for [`UpdateOpsItemInput`](crate::operation::update_ops_item::UpdateOpsItemInput).
|
632 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
633 + | #[non_exhaustive]
|
634 + | pub struct UpdateOpsItemInputBuilder {
|
635 + | pub(crate) description: ::std::option::Option<::std::string::String>,
|
636 + | pub(crate) operational_data: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::OpsItemDataValue>>,
|
637 + | pub(crate) operational_data_to_delete: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
638 + | pub(crate) notifications: ::std::option::Option<::std::vec::Vec<crate::types::OpsItemNotification>>,
|
639 + | pub(crate) priority: ::std::option::Option<i32>,
|
640 + | pub(crate) related_ops_items: ::std::option::Option<::std::vec::Vec<crate::types::RelatedOpsItem>>,
|
641 + | pub(crate) status: ::std::option::Option<crate::types::OpsItemStatus>,
|
642 + | pub(crate) ops_item_id: ::std::option::Option<::std::string::String>,
|
643 + | pub(crate) title: ::std::option::Option<::std::string::String>,
|
644 + | pub(crate) category: ::std::option::Option<::std::string::String>,
|
645 + | pub(crate) severity: ::std::option::Option<::std::string::String>,
|
646 + | pub(crate) actual_start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
647 + | pub(crate) actual_end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
648 + | pub(crate) planned_start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
649 + | pub(crate) planned_end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
|
650 + | pub(crate) ops_item_arn: ::std::option::Option<::std::string::String>,
|
651 + | }
|
652 + | impl UpdateOpsItemInputBuilder {
|
653 + | /// <p>User-defined text that contains information about the OpsItem, in Markdown format.</p>
|
654 + | pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
655 + | self.description = ::std::option::Option::Some(input.into());
|
656 + | self
|
657 + | }
|
658 + | /// <p>User-defined text that contains information about the OpsItem, in Markdown format.</p>
|
659 + | pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
660 + | self.description = input;
|
661 + | self
|
662 + | }
|
663 + | /// <p>User-defined text that contains information about the OpsItem, in Markdown format.</p>
|
664 + | pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
|
665 + | &self.description
|
666 + | }
|
667 + | /// Adds a key-value pair to `operational_data`.
|
668 + | ///
|
669 + | /// To override the contents of this collection use [`set_operational_data`](Self::set_operational_data).
|
670 + | ///
|
671 + | /// <p>Add new keys or edit existing key-value pairs of the OperationalData map in the OpsItem object.</p>
|
672 + | /// <p>Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.</p><important>
|
673 + | /// <p>Operational data keys <i>can't</i> begin with the following: <code>amazon</code>, <code>aws</code>, <code>amzn</code>, <code>ssm</code>, <code>/amazon</code>, <code>/aws</code>, <code>/amzn</code>, <code>/ssm</code>.</p>
|
674 + | /// </important>
|
675 + | /// <p>You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the <code>DescribeOpsItems</code> API operation) can view and search on the specified data. Operational data that isn't searchable is only viewable by users who have access to the OpsItem (as provided by the <code>GetOpsItem</code> API operation).</p>
|
676 + | /// <p>Use the <code>/aws/resources</code> key in OperationalData to specify a related resource in the request. Use the <code>/aws/automations</code> key in OperationalData to associate an Automation runbook with the OpsItem. To view Amazon Web Services CLI example commands that use these keys, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-manually-create-OpsItems.html">Creating OpsItems manually</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
677 + | pub fn operational_data(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::OpsItemDataValue) -> Self {
|
678 + | let mut hash_map = self.operational_data.unwrap_or_default();
|
679 + | hash_map.insert(k.into(), v);
|
680 + | self.operational_data = ::std::option::Option::Some(hash_map);
|
681 + | self
|
682 + | }
|
683 + | /// <p>Add new keys or edit existing key-value pairs of the OperationalData map in the OpsItem object.</p>
|
684 + | /// <p>Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.</p><important>
|
685 + | /// <p>Operational data keys <i>can't</i> begin with the following: <code>amazon</code>, <code>aws</code>, <code>amzn</code>, <code>ssm</code>, <code>/amazon</code>, <code>/aws</code>, <code>/amzn</code>, <code>/ssm</code>.</p>
|
686 + | /// </important>
|
687 + | /// <p>You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the <code>DescribeOpsItems</code> API operation) can view and search on the specified data. Operational data that isn't searchable is only viewable by users who have access to the OpsItem (as provided by the <code>GetOpsItem</code> API operation).</p>
|
688 + | /// <p>Use the <code>/aws/resources</code> key in OperationalData to specify a related resource in the request. Use the <code>/aws/automations</code> key in OperationalData to associate an Automation runbook with the OpsItem. To view Amazon Web Services CLI example commands that use these keys, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-manually-create-OpsItems.html">Creating OpsItems manually</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
689 + | pub fn set_operational_data(
|
690 + | mut self,
|
691 + | input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::OpsItemDataValue>>,
|
692 + | ) -> Self {
|
693 + | self.operational_data = input;
|
694 + | self
|
695 + | }
|
696 + | /// <p>Add new keys or edit existing key-value pairs of the OperationalData map in the OpsItem object.</p>
|
697 + | /// <p>Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.</p><important>
|
698 + | /// <p>Operational data keys <i>can't</i> begin with the following: <code>amazon</code>, <code>aws</code>, <code>amzn</code>, <code>ssm</code>, <code>/amazon</code>, <code>/aws</code>, <code>/amzn</code>, <code>/ssm</code>.</p>
|
699 + | /// </important>
|
700 + | /// <p>You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the <code>DescribeOpsItems</code> API operation) can view and search on the specified data. Operational data that isn't searchable is only viewable by users who have access to the OpsItem (as provided by the <code>GetOpsItem</code> API operation).</p>
|
701 + | /// <p>Use the <code>/aws/resources</code> key in OperationalData to specify a related resource in the request. Use the <code>/aws/automations</code> key in OperationalData to associate an Automation runbook with the OpsItem. To view Amazon Web Services CLI example commands that use these keys, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-manually-create-OpsItems.html">Creating OpsItems manually</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
702 + | pub fn get_operational_data(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::OpsItemDataValue>> {
|
703 + | &self.operational_data
|
704 + | }
|
705 + | /// Appends an item to `operational_data_to_delete`.
|
706 + | ///
|
707 + | /// To override the contents of this collection use [`set_operational_data_to_delete`](Self::set_operational_data_to_delete).
|
708 + | ///
|
709 + | /// <p>Keys that you want to remove from the OperationalData map.</p>
|
710 + | pub fn operational_data_to_delete(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
711 + | let mut v = self.operational_data_to_delete.unwrap_or_default();
|
712 + | v.push(input.into());
|
713 + | self.operational_data_to_delete = ::std::option::Option::Some(v);
|
714 + | self
|
715 + | }
|
716 + | /// <p>Keys that you want to remove from the OperationalData map.</p>
|
717 + | pub fn set_operational_data_to_delete(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
|
718 + | self.operational_data_to_delete = input;
|
719 + | self
|
720 + | }
|
721 + | /// <p>Keys that you want to remove from the OperationalData map.</p>
|
722 + | pub fn get_operational_data_to_delete(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
|
723 + | &self.operational_data_to_delete
|
724 + | }
|
725 + | /// Appends an item to `notifications`.
|
726 + | ///
|
727 + | /// To override the contents of this collection use [`set_notifications`](Self::set_notifications).
|
728 + | ///
|
729 + | /// <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.</p>
|
730 + | pub fn notifications(mut self, input: crate::types::OpsItemNotification) -> Self {
|
731 + | let mut v = self.notifications.unwrap_or_default();
|
732 + | v.push(input);
|
733 + | self.notifications = ::std::option::Option::Some(v);
|
734 + | self
|
735 + | }
|
736 + | /// <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.</p>
|
737 + | pub fn set_notifications(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::OpsItemNotification>>) -> Self {
|
738 + | self.notifications = input;
|
739 + | self
|
740 + | }
|
741 + | /// <p>The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this OpsItem is edited or changed.</p>
|
742 + | pub fn get_notifications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::OpsItemNotification>> {
|
743 + | &self.notifications
|
744 + | }
|
745 + | /// <p>The importance of this OpsItem in relation to other OpsItems in the system.</p>
|
746 + | pub fn priority(mut self, input: i32) -> Self {
|
747 + | self.priority = ::std::option::Option::Some(input);
|
748 + | self
|
749 + | }
|
750 + | /// <p>The importance of this OpsItem in relation to other OpsItems in the system.</p>
|
751 + | pub fn set_priority(mut self, input: ::std::option::Option<i32>) -> Self {
|
752 + | self.priority = input;
|
753 + | self
|
754 + | }
|
755 + | /// <p>The importance of this OpsItem in relation to other OpsItems in the system.</p>
|
756 + | pub fn get_priority(&self) -> &::std::option::Option<i32> {
|
757 + | &self.priority
|
758 + | }
|
759 + | /// Appends an item to `related_ops_items`.
|
760 + | ///
|
761 + | /// To override the contents of this collection use [`set_related_ops_items`](Self::set_related_ops_items).
|
762 + | ///
|
763 + | /// <p>One or more OpsItems that share something in common with the current OpsItems. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.</p>
|
764 + | pub fn related_ops_items(mut self, input: crate::types::RelatedOpsItem) -> Self {
|
765 + | let mut v = self.related_ops_items.unwrap_or_default();
|
766 + | v.push(input);
|
767 + | self.related_ops_items = ::std::option::Option::Some(v);
|
768 + | self
|
769 + | }
|
770 + | /// <p>One or more OpsItems that share something in common with the current OpsItems. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.</p>
|
771 + | pub fn set_related_ops_items(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::RelatedOpsItem>>) -> Self {
|
772 + | self.related_ops_items = input;
|
773 + | self
|
774 + | }
|
775 + | /// <p>One or more OpsItems that share something in common with the current OpsItems. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.</p>
|
776 + | pub fn get_related_ops_items(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::RelatedOpsItem>> {
|
777 + | &self.related_ops_items
|
778 + | }
|
779 + | /// <p>The OpsItem status. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-working-with-OpsItems-editing-details.html">Editing OpsItem details</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
780 + | pub fn status(mut self, input: crate::types::OpsItemStatus) -> Self {
|
781 + | self.status = ::std::option::Option::Some(input);
|
782 + | self
|
783 + | }
|
784 + | /// <p>The OpsItem status. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-working-with-OpsItems-editing-details.html">Editing OpsItem details</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
785 + | pub fn set_status(mut self, input: ::std::option::Option<crate::types::OpsItemStatus>) -> Self {
|
786 + | self.status = input;
|
787 + | self
|
788 + | }
|
789 + | /// <p>The OpsItem status. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-working-with-OpsItems-editing-details.html">Editing OpsItem details</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
790 + | pub fn get_status(&self) -> &::std::option::Option<crate::types::OpsItemStatus> {
|
791 + | &self.status
|
792 + | }
|
793 + | /// <p>The ID of the OpsItem.</p>
|
794 + | /// This field is required.
|
795 + | pub fn ops_item_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
796 + | self.ops_item_id = ::std::option::Option::Some(input.into());
|
797 + | self
|
798 + | }
|
799 + | /// <p>The ID of the OpsItem.</p>
|
800 + | pub fn set_ops_item_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
801 + | self.ops_item_id = input;
|
802 + | self
|
803 + | }
|
804 + | /// <p>The ID of the OpsItem.</p>
|
805 + | pub fn get_ops_item_id(&self) -> &::std::option::Option<::std::string::String> {
|
806 + | &self.ops_item_id
|
807 + | }
|
808 + | /// <p>A short heading that describes the nature of the OpsItem and the impacted resource.</p>
|
809 + | pub fn title(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
810 + | self.title = ::std::option::Option::Some(input.into());
|
811 + | self
|
812 + | }
|
813 + | /// <p>A short heading that describes the nature of the OpsItem and the impacted resource.</p>
|
814 + | pub fn set_title(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
815 + | self.title = input;
|
816 + | self
|
817 + | }
|
818 + | /// <p>A short heading that describes the nature of the OpsItem and the impacted resource.</p>
|
819 + | pub fn get_title(&self) -> &::std::option::Option<::std::string::String> {
|
820 + | &self.title
|
821 + | }
|
822 + | /// <p>Specify a new category for an OpsItem.</p>
|
823 + | pub fn category(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
824 + | self.category = ::std::option::Option::Some(input.into());
|
825 + | self
|
826 + | }
|
827 + | /// <p>Specify a new category for an OpsItem.</p>
|
828 + | pub fn set_category(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
829 + | self.category = input;
|
830 + | self
|
831 + | }
|
832 + | /// <p>Specify a new category for an OpsItem.</p>
|
833 + | pub fn get_category(&self) -> &::std::option::Option<::std::string::String> {
|
834 + | &self.category
|
835 + | }
|
836 + | /// <p>Specify a new severity for an OpsItem.</p>
|
837 + | pub fn severity(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
838 + | self.severity = ::std::option::Option::Some(input.into());
|
839 + | self
|
840 + | }
|
841 + | /// <p>Specify a new severity for an OpsItem.</p>
|
842 + | pub fn set_severity(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
843 + | self.severity = input;
|
844 + | self
|
845 + | }
|
846 + | /// <p>Specify a new severity for an OpsItem.</p>
|
847 + | pub fn get_severity(&self) -> &::std::option::Option<::std::string::String> {
|
848 + | &self.severity
|
849 + | }
|
850 + | /// <p>The time a runbook workflow started. Currently reported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
851 + | pub fn actual_start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
852 + | self.actual_start_time = ::std::option::Option::Some(input);
|
853 + | self
|
854 + | }
|
855 + | /// <p>The time a runbook workflow started. Currently reported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
856 + | pub fn set_actual_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
857 + | self.actual_start_time = input;
|
858 + | self
|
859 + | }
|
860 + | /// <p>The time a runbook workflow started. Currently reported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
861 + | pub fn get_actual_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
862 + | &self.actual_start_time
|
863 + | }
|
864 + | /// <p>The time a runbook workflow ended. Currently reported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
865 + | pub fn actual_end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
866 + | self.actual_end_time = ::std::option::Option::Some(input);
|
867 + | self
|
868 + | }
|
869 + | /// <p>The time a runbook workflow ended. Currently reported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
870 + | pub fn set_actual_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
871 + | self.actual_end_time = input;
|
872 + | self
|
873 + | }
|
874 + | /// <p>The time a runbook workflow ended. Currently reported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
875 + | pub fn get_actual_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
876 + | &self.actual_end_time
|
877 + | }
|
878 + | /// <p>The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
879 + | pub fn planned_start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
880 + | self.planned_start_time = ::std::option::Option::Some(input);
|
881 + | self
|
882 + | }
|
883 + | /// <p>The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
884 + | pub fn set_planned_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
885 + | self.planned_start_time = input;
|
886 + | self
|
887 + | }
|
888 + | /// <p>The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
889 + | pub fn get_planned_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
890 + | &self.planned_start_time
|
891 + | }
|
892 + | /// <p>The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
893 + | pub fn planned_end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
|
894 + | self.planned_end_time = ::std::option::Option::Some(input);
|
895 + | self
|
896 + | }
|
897 + | /// <p>The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
898 + | pub fn set_planned_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
|
899 + | self.planned_end_time = input;
|
900 + | self
|
901 + | }
|
902 + | /// <p>The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem type <code>/aws/changerequest</code>.</p>
|
903 + | pub fn get_planned_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
|
904 + | &self.planned_end_time
|
905 + | }
|
906 + | /// <p>The OpsItem Amazon Resource Name (ARN).</p>
|
907 + | pub fn ops_item_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
908 + | self.ops_item_arn = ::std::option::Option::Some(input.into());
|
909 + | self
|
910 + | }
|
911 + | /// <p>The OpsItem Amazon Resource Name (ARN).</p>
|
912 + | pub fn set_ops_item_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
913 + | self.ops_item_arn = input;
|
914 + | self
|
915 + | }
|
916 + | /// <p>The OpsItem Amazon Resource Name (ARN).</p>
|
917 + | pub fn get_ops_item_arn(&self) -> &::std::option::Option<::std::string::String> {
|
918 + | &self.ops_item_arn
|
919 + | }
|
920 + | /// Consumes the builder and constructs a [`UpdateOpsItemInput`](crate::operation::update_ops_item::UpdateOpsItemInput).
|
921 + | pub fn build(
|
922 + | self,
|
923 + | ) -> ::std::result::Result<crate::operation::update_ops_item::UpdateOpsItemInput, ::aws_smithy_types::error::operation::BuildError> {
|
924 + | ::std::result::Result::Ok(crate::operation::update_ops_item::UpdateOpsItemInput {
|
925 + | description: self.description,
|
926 + | operational_data: self.operational_data,
|
927 + | operational_data_to_delete: self.operational_data_to_delete,
|
928 + | notifications: self.notifications,
|
929 + | priority: self.priority,
|
930 + | related_ops_items: self.related_ops_items,
|
931 + | status: self.status,
|
932 + | ops_item_id: self.ops_item_id,
|
933 + | title: self.title,
|
934 + | category: self.category,
|
935 + | severity: self.severity,
|
936 + | actual_start_time: self.actual_start_time,
|
937 + | actual_end_time: self.actual_end_time,
|
938 + | planned_start_time: self.planned_start_time,
|
939 + | planned_end_time: self.planned_end_time,
|
940 + | ops_item_arn: self.ops_item_arn,
|
941 + | })
|
942 + | }
|
943 + | }
|