1#[non_exhaustive]
4#[derive(std::clone::Clone, std::cmp::PartialEq)]
5pub struct PrometheusTargetOperationInput {}
6impl std::fmt::Debug for PrometheusTargetOperationInput {
7 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
8 let mut formatter = f.debug_struct("PrometheusTargetOperationInput");
9 formatter.finish()
10 }
11}
12pub mod prometheus_target_operation_input {
14 #[non_exhaustive]
16 #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
17 pub struct Builder {}
18 impl Builder {
19 pub fn build(
21 self,
22 ) -> std::result::Result<
23 crate::input::PrometheusTargetOperationInput,
24 aws_smithy_http::operation::BuildError,
25 > {
26 Ok(crate::input::PrometheusTargetOperationInput {})
27 }
28 }
29}
30impl PrometheusTargetOperationInput {
31 pub fn builder() -> crate::input::prometheus_target_operation_input::Builder {
33 crate::input::prometheus_target_operation_input::Builder::default()
34 }
35}
36
37#[non_exhaustive]
39#[derive(std::clone::Clone, std::cmp::PartialEq)]
40pub struct RestartOperationInput {
41 pub services: std::option::Option<std::vec::Vec<std::string::String>>,
43 pub hostname: std::option::Option<std::string::String>,
45}
46impl RestartOperationInput {
47 pub fn services(&self) -> std::option::Option<&[std::string::String]> {
49 self.services.as_deref()
50 }
51 pub fn hostname(&self) -> std::option::Option<&str> {
53 self.hostname.as_deref()
54 }
55}
56impl std::fmt::Debug for RestartOperationInput {
57 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
58 let mut formatter = f.debug_struct("RestartOperationInput");
59 formatter.field("services", &self.services);
60 formatter.field("hostname", &self.hostname);
61 formatter.finish()
62 }
63}
64pub mod restart_operation_input {
66 #[non_exhaustive]
68 #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
69 pub struct Builder {
70 pub(crate) services: std::option::Option<std::vec::Vec<std::string::String>>,
71 pub(crate) hostname: std::option::Option<std::string::String>,
72 }
73 impl Builder {
74 pub fn services(mut self, input: impl Into<std::string::String>) -> Self {
80 let mut v = self.services.unwrap_or_default();
81 v.push(input.into());
82 self.services = Some(v);
83 self
84 }
85 pub fn set_services(
87 mut self,
88 input: std::option::Option<std::vec::Vec<std::string::String>>,
89 ) -> Self {
90 self.services = input;
91 self
92 }
93 pub fn hostname(mut self, input: impl Into<std::string::String>) -> Self {
95 self.hostname = Some(input.into());
96 self
97 }
98 pub fn set_hostname(mut self, input: std::option::Option<std::string::String>) -> Self {
100 self.hostname = input;
101 self
102 }
103 pub fn build(
105 self,
106 ) -> std::result::Result<
107 crate::input::RestartOperationInput,
108 aws_smithy_http::operation::BuildError,
109 > {
110 Ok(crate::input::RestartOperationInput {
111 services: self.services,
112 hostname: self.hostname,
113 })
114 }
115 }
116}
117impl RestartOperationInput {
118 pub fn builder() -> crate::input::restart_operation_input::Builder {
120 crate::input::restart_operation_input::Builder::default()
121 }
122}
123
124#[non_exhaustive]
126#[derive(std::clone::Clone, std::cmp::PartialEq)]
127pub struct StopOperationInput {
128 pub services: std::option::Option<std::vec::Vec<std::string::String>>,
130 pub hostname: std::option::Option<std::string::String>,
132}
133impl StopOperationInput {
134 pub fn services(&self) -> std::option::Option<&[std::string::String]> {
136 self.services.as_deref()
137 }
138 pub fn hostname(&self) -> std::option::Option<&str> {
140 self.hostname.as_deref()
141 }
142}
143impl std::fmt::Debug for StopOperationInput {
144 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
145 let mut formatter = f.debug_struct("StopOperationInput");
146 formatter.field("services", &self.services);
147 formatter.field("hostname", &self.hostname);
148 formatter.finish()
149 }
150}
151pub mod stop_operation_input {
153 #[non_exhaustive]
155 #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
156 pub struct Builder {
157 pub(crate) services: std::option::Option<std::vec::Vec<std::string::String>>,
158 pub(crate) hostname: std::option::Option<std::string::String>,
159 }
160 impl Builder {
161 pub fn services(mut self, input: impl Into<std::string::String>) -> Self {
167 let mut v = self.services.unwrap_or_default();
168 v.push(input.into());
169 self.services = Some(v);
170 self
171 }
172 pub fn set_services(
174 mut self,
175 input: std::option::Option<std::vec::Vec<std::string::String>>,
176 ) -> Self {
177 self.services = input;
178 self
179 }
180 pub fn hostname(mut self, input: impl Into<std::string::String>) -> Self {
182 self.hostname = Some(input.into());
183 self
184 }
185 pub fn set_hostname(mut self, input: std::option::Option<std::string::String>) -> Self {
187 self.hostname = input;
188 self
189 }
190 pub fn build(
192 self,
193 ) -> std::result::Result<
194 crate::input::StopOperationInput,
195 aws_smithy_http::operation::BuildError,
196 > {
197 Ok(crate::input::StopOperationInput {
198 services: self.services,
199 hostname: self.hostname,
200 })
201 }
202 }
203}
204impl StopOperationInput {
205 pub fn builder() -> crate::input::stop_operation_input::Builder {
207 crate::input::stop_operation_input::Builder::default()
208 }
209}
210
211#[non_exhaustive]
213#[derive(std::clone::Clone, std::cmp::PartialEq)]
214pub struct StartOperationInput {
215 pub services: std::option::Option<std::vec::Vec<std::string::String>>,
217 pub hostname: std::option::Option<std::string::String>,
219}
220impl StartOperationInput {
221 pub fn services(&self) -> std::option::Option<&[std::string::String]> {
223 self.services.as_deref()
224 }
225 pub fn hostname(&self) -> std::option::Option<&str> {
227 self.hostname.as_deref()
228 }
229}
230impl std::fmt::Debug for StartOperationInput {
231 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
232 let mut formatter = f.debug_struct("StartOperationInput");
233 formatter.field("services", &self.services);
234 formatter.field("hostname", &self.hostname);
235 formatter.finish()
236 }
237}
238pub mod start_operation_input {
240 #[non_exhaustive]
242 #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
243 pub struct Builder {
244 pub(crate) services: std::option::Option<std::vec::Vec<std::string::String>>,
245 pub(crate) hostname: std::option::Option<std::string::String>,
246 }
247 impl Builder {
248 pub fn services(mut self, input: impl Into<std::string::String>) -> Self {
254 let mut v = self.services.unwrap_or_default();
255 v.push(input.into());
256 self.services = Some(v);
257 self
258 }
259 pub fn set_services(
261 mut self,
262 input: std::option::Option<std::vec::Vec<std::string::String>>,
263 ) -> Self {
264 self.services = input;
265 self
266 }
267 pub fn hostname(mut self, input: impl Into<std::string::String>) -> Self {
269 self.hostname = Some(input.into());
270 self
271 }
272 pub fn set_hostname(mut self, input: std::option::Option<std::string::String>) -> Self {
274 self.hostname = input;
275 self
276 }
277 pub fn build(
279 self,
280 ) -> std::result::Result<
281 crate::input::StartOperationInput,
282 aws_smithy_http::operation::BuildError,
283 > {
284 Ok(crate::input::StartOperationInput {
285 services: self.services,
286 hostname: self.hostname,
287 })
288 }
289 }
290}
291impl StartOperationInput {
292 pub fn builder() -> crate::input::start_operation_input::Builder {
294 crate::input::start_operation_input::Builder::default()
295 }
296}
297
298#[non_exhaustive]
300#[derive(std::clone::Clone, std::cmp::PartialEq)]
301pub struct ListOperationInput {}
302impl std::fmt::Debug for ListOperationInput {
303 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
304 let mut formatter = f.debug_struct("ListOperationInput");
305 formatter.finish()
306 }
307}
308pub mod list_operation_input {
310 #[non_exhaustive]
312 #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
313 pub struct Builder {}
314 impl Builder {
315 pub fn build(
317 self,
318 ) -> std::result::Result<
319 crate::input::ListOperationInput,
320 aws_smithy_http::operation::BuildError,
321 > {
322 Ok(crate::input::ListOperationInput {})
323 }
324 }
325}
326impl ListOperationInput {
327 pub fn builder() -> crate::input::list_operation_input::Builder {
329 crate::input::list_operation_input::Builder::default()
330 }
331}
332
333#[non_exhaustive]
335#[derive(std::clone::Clone, std::cmp::PartialEq)]
336pub struct HealthcheckOperationInput {}
337impl std::fmt::Debug for HealthcheckOperationInput {
338 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
339 let mut formatter = f.debug_struct("HealthcheckOperationInput");
340 formatter.finish()
341 }
342}
343pub mod healthcheck_operation_input {
345 #[non_exhaustive]
347 #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
348 pub struct Builder {}
349 impl Builder {
350 pub fn build(
352 self,
353 ) -> std::result::Result<
354 crate::input::HealthcheckOperationInput,
355 aws_smithy_http::operation::BuildError,
356 > {
357 Ok(crate::input::HealthcheckOperationInput {})
358 }
359 }
360}
361impl HealthcheckOperationInput {
362 pub fn builder() -> crate::input::healthcheck_operation_input::Builder {
364 crate::input::healthcheck_operation_input::Builder::default()
365 }
366}