1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ExecuteCommandInput {
#[doc(hidden)]
pub cluster: std::option::Option<std::string::String>,
#[doc(hidden)]
pub container: std::option::Option<std::string::String>,
#[doc(hidden)]
pub command: std::option::Option<std::string::String>,
#[doc(hidden)]
pub interactive: bool,
#[doc(hidden)]
pub task: std::option::Option<std::string::String>,
}
impl ExecuteCommandInput {
pub fn cluster(&self) -> std::option::Option<&str> {
self.cluster.as_deref()
}
pub fn container(&self) -> std::option::Option<&str> {
self.container.as_deref()
}
pub fn command(&self) -> std::option::Option<&str> {
self.command.as_deref()
}
pub fn interactive(&self) -> bool {
self.interactive
}
pub fn task(&self) -> std::option::Option<&str> {
self.task.as_deref()
}
}
impl ExecuteCommandInput {
pub fn builder() -> crate::operation::execute_command::builders::ExecuteCommandInputBuilder {
crate::operation::execute_command::builders::ExecuteCommandInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct ExecuteCommandInputBuilder {
pub(crate) cluster: std::option::Option<std::string::String>,
pub(crate) container: std::option::Option<std::string::String>,
pub(crate) command: std::option::Option<std::string::String>,
pub(crate) interactive: std::option::Option<bool>,
pub(crate) task: std::option::Option<std::string::String>,
}
impl ExecuteCommandInputBuilder {
pub fn cluster(mut self, input: impl Into<std::string::String>) -> Self {
self.cluster = Some(input.into());
self
}
pub fn set_cluster(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cluster = input;
self
}
pub fn container(mut self, input: impl Into<std::string::String>) -> Self {
self.container = Some(input.into());
self
}
pub fn set_container(mut self, input: std::option::Option<std::string::String>) -> Self {
self.container = input;
self
}
pub fn command(mut self, input: impl Into<std::string::String>) -> Self {
self.command = Some(input.into());
self
}
pub fn set_command(mut self, input: std::option::Option<std::string::String>) -> Self {
self.command = input;
self
}
pub fn interactive(mut self, input: bool) -> Self {
self.interactive = Some(input);
self
}
pub fn set_interactive(mut self, input: std::option::Option<bool>) -> Self {
self.interactive = input;
self
}
pub fn task(mut self, input: impl Into<std::string::String>) -> Self {
self.task = Some(input.into());
self
}
pub fn set_task(mut self, input: std::option::Option<std::string::String>) -> Self {
self.task = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::execute_command::ExecuteCommandInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::execute_command::ExecuteCommandInput {
cluster: self.cluster,
container: self.container,
command: self.command,
interactive: self.interactive.unwrap_or_default(),
task: self.task,
})
}
}