docktor_api/
input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Prometheus target input structure.
3#[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}
12/// See [`PrometheusTargetOperationInput`](crate::input::PrometheusTargetOperationInput)
13pub mod prometheus_target_operation_input {
14    /// A builder for [`PrometheusTargetOperationInput`](crate::input::PrometheusTargetOperationInput)
15    #[non_exhaustive]
16    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
17    pub struct Builder {}
18    impl Builder {
19        /// Consumes the builder and constructs a [`PrometheusTargetOperationInput`](crate::input::PrometheusTargetOperationInput)
20        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    /// Creates a new builder-style object to manufacture [`PrometheusTargetOperationInput`](crate::input::PrometheusTargetOperationInput)
32    pub fn builder() -> crate::input::prometheus_target_operation_input::Builder {
33        crate::input::prometheus_target_operation_input::Builder::default()
34    }
35}
36
37/// Systemd input structure.
38#[non_exhaustive]
39#[derive(std::clone::Clone, std::cmp::PartialEq)]
40pub struct RestartOperationInput {
41    /// Service name.
42    pub services: std::option::Option<std::vec::Vec<std::string::String>>,
43    /// Hostname.
44    pub hostname: std::option::Option<std::string::String>,
45}
46impl RestartOperationInput {
47    /// Service name.
48    pub fn services(&self) -> std::option::Option<&[std::string::String]> {
49        self.services.as_deref()
50    }
51    /// Hostname.
52    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}
64/// See [`RestartOperationInput`](crate::input::RestartOperationInput)
65pub mod restart_operation_input {
66    /// A builder for [`RestartOperationInput`](crate::input::RestartOperationInput)
67    #[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        /// Appends an item to `services`.
75        ///
76        /// To override the contents of this collection use [`set_services`](Self::set_services).
77        ///
78        /// Service name.
79        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        /// Service name.
86        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        /// Hostname.
94        pub fn hostname(mut self, input: impl Into<std::string::String>) -> Self {
95            self.hostname = Some(input.into());
96            self
97        }
98        /// Hostname.
99        pub fn set_hostname(mut self, input: std::option::Option<std::string::String>) -> Self {
100            self.hostname = input;
101            self
102        }
103        /// Consumes the builder and constructs a [`RestartOperationInput`](crate::input::RestartOperationInput)
104        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    /// Creates a new builder-style object to manufacture [`RestartOperationInput`](crate::input::RestartOperationInput)
119    pub fn builder() -> crate::input::restart_operation_input::Builder {
120        crate::input::restart_operation_input::Builder::default()
121    }
122}
123
124/// Systemd input structure.
125#[non_exhaustive]
126#[derive(std::clone::Clone, std::cmp::PartialEq)]
127pub struct StopOperationInput {
128    /// Service name.
129    pub services: std::option::Option<std::vec::Vec<std::string::String>>,
130    /// Hostname.
131    pub hostname: std::option::Option<std::string::String>,
132}
133impl StopOperationInput {
134    /// Service name.
135    pub fn services(&self) -> std::option::Option<&[std::string::String]> {
136        self.services.as_deref()
137    }
138    /// Hostname.
139    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}
151/// See [`StopOperationInput`](crate::input::StopOperationInput)
152pub mod stop_operation_input {
153    /// A builder for [`StopOperationInput`](crate::input::StopOperationInput)
154    #[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        /// Appends an item to `services`.
162        ///
163        /// To override the contents of this collection use [`set_services`](Self::set_services).
164        ///
165        /// Service name.
166        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        /// Service name.
173        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        /// Hostname.
181        pub fn hostname(mut self, input: impl Into<std::string::String>) -> Self {
182            self.hostname = Some(input.into());
183            self
184        }
185        /// Hostname.
186        pub fn set_hostname(mut self, input: std::option::Option<std::string::String>) -> Self {
187            self.hostname = input;
188            self
189        }
190        /// Consumes the builder and constructs a [`StopOperationInput`](crate::input::StopOperationInput)
191        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    /// Creates a new builder-style object to manufacture [`StopOperationInput`](crate::input::StopOperationInput)
206    pub fn builder() -> crate::input::stop_operation_input::Builder {
207        crate::input::stop_operation_input::Builder::default()
208    }
209}
210
211/// Systemd input structure.
212#[non_exhaustive]
213#[derive(std::clone::Clone, std::cmp::PartialEq)]
214pub struct StartOperationInput {
215    /// Service name.
216    pub services: std::option::Option<std::vec::Vec<std::string::String>>,
217    /// Hostname.
218    pub hostname: std::option::Option<std::string::String>,
219}
220impl StartOperationInput {
221    /// Service name.
222    pub fn services(&self) -> std::option::Option<&[std::string::String]> {
223        self.services.as_deref()
224    }
225    /// Hostname.
226    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}
238/// See [`StartOperationInput`](crate::input::StartOperationInput)
239pub mod start_operation_input {
240    /// A builder for [`StartOperationInput`](crate::input::StartOperationInput)
241    #[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        /// Appends an item to `services`.
249        ///
250        /// To override the contents of this collection use [`set_services`](Self::set_services).
251        ///
252        /// Service name.
253        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        /// Service name.
260        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        /// Hostname.
268        pub fn hostname(mut self, input: impl Into<std::string::String>) -> Self {
269            self.hostname = Some(input.into());
270            self
271        }
272        /// Hostname.
273        pub fn set_hostname(mut self, input: std::option::Option<std::string::String>) -> Self {
274            self.hostname = input;
275            self
276        }
277        /// Consumes the builder and constructs a [`StartOperationInput`](crate::input::StartOperationInput)
278        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    /// Creates a new builder-style object to manufacture [`StartOperationInput`](crate::input::StartOperationInput)
293    pub fn builder() -> crate::input::start_operation_input::Builder {
294        crate::input::start_operation_input::Builder::default()
295    }
296}
297
298/// ListInput structure
299#[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}
308/// See [`ListOperationInput`](crate::input::ListOperationInput)
309pub mod list_operation_input {
310    /// A builder for [`ListOperationInput`](crate::input::ListOperationInput)
311    #[non_exhaustive]
312    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
313    pub struct Builder {}
314    impl Builder {
315        /// Consumes the builder and constructs a [`ListOperationInput`](crate::input::ListOperationInput)
316        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    /// Creates a new builder-style object to manufacture [`ListOperationInput`](crate::input::ListOperationInput)
328    pub fn builder() -> crate::input::list_operation_input::Builder {
329        crate::input::list_operation_input::Builder::default()
330    }
331}
332
333/// //////////////////////////////////// Model //////////////////////////////////// Service healthcheck input structure
334#[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}
343/// See [`HealthcheckOperationInput`](crate::input::HealthcheckOperationInput)
344pub mod healthcheck_operation_input {
345    /// A builder for [`HealthcheckOperationInput`](crate::input::HealthcheckOperationInput)
346    #[non_exhaustive]
347    #[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
348    pub struct Builder {}
349    impl Builder {
350        /// Consumes the builder and constructs a [`HealthcheckOperationInput`](crate::input::HealthcheckOperationInput)
351        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    /// Creates a new builder-style object to manufacture [`HealthcheckOperationInput`](crate::input::HealthcheckOperationInput)
363    pub fn builder() -> crate::input::healthcheck_operation_input::Builder {
364        crate::input::healthcheck_operation_input::Builder::default()
365    }
366}