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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeDeploymentsInput {
/// <p>The stack ID. If you include this parameter, the command returns a description of the commands associated with the specified stack.</p>
#[doc(hidden)]
pub stack_id: std::option::Option<std::string::String>,
/// <p>The app ID. If you include this parameter, the command returns a description of the commands associated with the specified app.</p>
#[doc(hidden)]
pub app_id: std::option::Option<std::string::String>,
/// <p>An array of deployment IDs to be described. If you include this parameter, the command returns a description of the specified deployments. Otherwise, it returns a description of every deployment.</p>
#[doc(hidden)]
pub deployment_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl DescribeDeploymentsInput {
/// <p>The stack ID. If you include this parameter, the command returns a description of the commands associated with the specified stack.</p>
pub fn stack_id(&self) -> std::option::Option<&str> {
self.stack_id.as_deref()
}
/// <p>The app ID. If you include this parameter, the command returns a description of the commands associated with the specified app.</p>
pub fn app_id(&self) -> std::option::Option<&str> {
self.app_id.as_deref()
}
/// <p>An array of deployment IDs to be described. If you include this parameter, the command returns a description of the specified deployments. Otherwise, it returns a description of every deployment.</p>
pub fn deployment_ids(&self) -> std::option::Option<&[std::string::String]> {
self.deployment_ids.as_deref()
}
}
impl DescribeDeploymentsInput {
/// Creates a new builder-style object to manufacture [`DescribeDeploymentsInput`](crate::operation::describe_deployments::DescribeDeploymentsInput).
pub fn builder(
) -> crate::operation::describe_deployments::builders::DescribeDeploymentsInputBuilder {
crate::operation::describe_deployments::builders::DescribeDeploymentsInputBuilder::default()
}
}
/// A builder for [`DescribeDeploymentsInput`](crate::operation::describe_deployments::DescribeDeploymentsInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeDeploymentsInputBuilder {
pub(crate) stack_id: std::option::Option<std::string::String>,
pub(crate) app_id: std::option::Option<std::string::String>,
pub(crate) deployment_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl DescribeDeploymentsInputBuilder {
/// <p>The stack ID. If you include this parameter, the command returns a description of the commands associated with the specified stack.</p>
pub fn stack_id(mut self, input: impl Into<std::string::String>) -> Self {
self.stack_id = Some(input.into());
self
}
/// <p>The stack ID. If you include this parameter, the command returns a description of the commands associated with the specified stack.</p>
pub fn set_stack_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.stack_id = input;
self
}
/// <p>The app ID. If you include this parameter, the command returns a description of the commands associated with the specified app.</p>
pub fn app_id(mut self, input: impl Into<std::string::String>) -> Self {
self.app_id = Some(input.into());
self
}
/// <p>The app ID. If you include this parameter, the command returns a description of the commands associated with the specified app.</p>
pub fn set_app_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.app_id = input;
self
}
/// Appends an item to `deployment_ids`.
///
/// To override the contents of this collection use [`set_deployment_ids`](Self::set_deployment_ids).
///
/// <p>An array of deployment IDs to be described. If you include this parameter, the command returns a description of the specified deployments. Otherwise, it returns a description of every deployment.</p>
pub fn deployment_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.deployment_ids.unwrap_or_default();
v.push(input.into());
self.deployment_ids = Some(v);
self
}
/// <p>An array of deployment IDs to be described. If you include this parameter, the command returns a description of the specified deployments. Otherwise, it returns a description of every deployment.</p>
pub fn set_deployment_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.deployment_ids = input;
self
}
/// Consumes the builder and constructs a [`DescribeDeploymentsInput`](crate::operation::describe_deployments::DescribeDeploymentsInput).
pub fn build(
self,
) -> Result<
crate::operation::describe_deployments::DescribeDeploymentsInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::describe_deployments::DescribeDeploymentsInput {
stack_id: self.stack_id,
app_id: self.app_id,
deployment_ids: self.deployment_ids,
},
)
}
}