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
// 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 DescribeServiceDeploymentsOutput {
/// <p>The list of service deployments described.</p>
pub service_deployments: ::std::option::Option<::std::vec::Vec<crate::types::ServiceDeployment>>,
/// <p>Any failures associated with the call.</p>
/// <p>If you decsribe a deployment with a service revision created before October 25, 2024, the call fails. The failure includes the service revision ARN and the reason set to <code>MISSING</code>.</p>
pub failures: ::std::option::Option<::std::vec::Vec<crate::types::Failure>>,
_request_id: Option<String>,
}
impl DescribeServiceDeploymentsOutput {
/// <p>The list of service deployments described.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.service_deployments.is_none()`.
pub fn service_deployments(&self) -> &[crate::types::ServiceDeployment] {
self.service_deployments.as_deref().unwrap_or_default()
}
/// <p>Any failures associated with the call.</p>
/// <p>If you decsribe a deployment with a service revision created before October 25, 2024, the call fails. The failure includes the service revision ARN and the reason set to <code>MISSING</code>.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.failures.is_none()`.
pub fn failures(&self) -> &[crate::types::Failure] {
self.failures.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for DescribeServiceDeploymentsOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeServiceDeploymentsOutput {
/// Creates a new builder-style object to manufacture [`DescribeServiceDeploymentsOutput`](crate::operation::describe_service_deployments::DescribeServiceDeploymentsOutput).
pub fn builder() -> crate::operation::describe_service_deployments::builders::DescribeServiceDeploymentsOutputBuilder {
crate::operation::describe_service_deployments::builders::DescribeServiceDeploymentsOutputBuilder::default()
}
}
/// A builder for [`DescribeServiceDeploymentsOutput`](crate::operation::describe_service_deployments::DescribeServiceDeploymentsOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeServiceDeploymentsOutputBuilder {
pub(crate) service_deployments: ::std::option::Option<::std::vec::Vec<crate::types::ServiceDeployment>>,
pub(crate) failures: ::std::option::Option<::std::vec::Vec<crate::types::Failure>>,
_request_id: Option<String>,
}
impl DescribeServiceDeploymentsOutputBuilder {
/// Appends an item to `service_deployments`.
///
/// To override the contents of this collection use [`set_service_deployments`](Self::set_service_deployments).
///
/// <p>The list of service deployments described.</p>
pub fn service_deployments(mut self, input: crate::types::ServiceDeployment) -> Self {
let mut v = self.service_deployments.unwrap_or_default();
v.push(input);
self.service_deployments = ::std::option::Option::Some(v);
self
}
/// <p>The list of service deployments described.</p>
pub fn set_service_deployments(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ServiceDeployment>>) -> Self {
self.service_deployments = input;
self
}
/// <p>The list of service deployments described.</p>
pub fn get_service_deployments(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ServiceDeployment>> {
&self.service_deployments
}
/// Appends an item to `failures`.
///
/// To override the contents of this collection use [`set_failures`](Self::set_failures).
///
/// <p>Any failures associated with the call.</p>
/// <p>If you decsribe a deployment with a service revision created before October 25, 2024, the call fails. The failure includes the service revision ARN and the reason set to <code>MISSING</code>.</p>
pub fn failures(mut self, input: crate::types::Failure) -> Self {
let mut v = self.failures.unwrap_or_default();
v.push(input);
self.failures = ::std::option::Option::Some(v);
self
}
/// <p>Any failures associated with the call.</p>
/// <p>If you decsribe a deployment with a service revision created before October 25, 2024, the call fails. The failure includes the service revision ARN and the reason set to <code>MISSING</code>.</p>
pub fn set_failures(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Failure>>) -> Self {
self.failures = input;
self
}
/// <p>Any failures associated with the call.</p>
/// <p>If you decsribe a deployment with a service revision created before October 25, 2024, the call fails. The failure includes the service revision ARN and the reason set to <code>MISSING</code>.</p>
pub fn get_failures(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Failure>> {
&self.failures
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`DescribeServiceDeploymentsOutput`](crate::operation::describe_service_deployments::DescribeServiceDeploymentsOutput).
pub fn build(self) -> crate::operation::describe_service_deployments::DescribeServiceDeploymentsOutput {
crate::operation::describe_service_deployments::DescribeServiceDeploymentsOutput {
service_deployments: self.service_deployments,
failures: self.failures,
_request_id: self._request_id,
}
}
}