aws_sdk_sagemaker/types/
_edge_deployment_plan_summary.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Contains information summarizing an edge deployment plan.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct EdgeDeploymentPlanSummary {
7    /// <p>The ARN of the edge deployment plan.</p>
8    pub edge_deployment_plan_arn: ::std::option::Option<::std::string::String>,
9    /// <p>The name of the edge deployment plan.</p>
10    pub edge_deployment_plan_name: ::std::option::Option<::std::string::String>,
11    /// <p>The name of the device fleet used for the deployment.</p>
12    pub device_fleet_name: ::std::option::Option<::std::string::String>,
13    /// <p>The number of edge devices with the successful deployment.</p>
14    pub edge_deployment_success: ::std::option::Option<i32>,
15    /// <p>The number of edge devices yet to pick up the deployment, or in progress.</p>
16    pub edge_deployment_pending: ::std::option::Option<i32>,
17    /// <p>The number of edge devices that failed the deployment.</p>
18    pub edge_deployment_failed: ::std::option::Option<i32>,
19    /// <p>The time when the edge deployment plan was created.</p>
20    pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
21    /// <p>The time when the edge deployment plan was last updated.</p>
22    pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
23}
24impl EdgeDeploymentPlanSummary {
25    /// <p>The ARN of the edge deployment plan.</p>
26    pub fn edge_deployment_plan_arn(&self) -> ::std::option::Option<&str> {
27        self.edge_deployment_plan_arn.as_deref()
28    }
29    /// <p>The name of the edge deployment plan.</p>
30    pub fn edge_deployment_plan_name(&self) -> ::std::option::Option<&str> {
31        self.edge_deployment_plan_name.as_deref()
32    }
33    /// <p>The name of the device fleet used for the deployment.</p>
34    pub fn device_fleet_name(&self) -> ::std::option::Option<&str> {
35        self.device_fleet_name.as_deref()
36    }
37    /// <p>The number of edge devices with the successful deployment.</p>
38    pub fn edge_deployment_success(&self) -> ::std::option::Option<i32> {
39        self.edge_deployment_success
40    }
41    /// <p>The number of edge devices yet to pick up the deployment, or in progress.</p>
42    pub fn edge_deployment_pending(&self) -> ::std::option::Option<i32> {
43        self.edge_deployment_pending
44    }
45    /// <p>The number of edge devices that failed the deployment.</p>
46    pub fn edge_deployment_failed(&self) -> ::std::option::Option<i32> {
47        self.edge_deployment_failed
48    }
49    /// <p>The time when the edge deployment plan was created.</p>
50    pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
51        self.creation_time.as_ref()
52    }
53    /// <p>The time when the edge deployment plan was last updated.</p>
54    pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
55        self.last_modified_time.as_ref()
56    }
57}
58impl EdgeDeploymentPlanSummary {
59    /// Creates a new builder-style object to manufacture [`EdgeDeploymentPlanSummary`](crate::types::EdgeDeploymentPlanSummary).
60    pub fn builder() -> crate::types::builders::EdgeDeploymentPlanSummaryBuilder {
61        crate::types::builders::EdgeDeploymentPlanSummaryBuilder::default()
62    }
63}
64
65/// A builder for [`EdgeDeploymentPlanSummary`](crate::types::EdgeDeploymentPlanSummary).
66#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
67#[non_exhaustive]
68pub struct EdgeDeploymentPlanSummaryBuilder {
69    pub(crate) edge_deployment_plan_arn: ::std::option::Option<::std::string::String>,
70    pub(crate) edge_deployment_plan_name: ::std::option::Option<::std::string::String>,
71    pub(crate) device_fleet_name: ::std::option::Option<::std::string::String>,
72    pub(crate) edge_deployment_success: ::std::option::Option<i32>,
73    pub(crate) edge_deployment_pending: ::std::option::Option<i32>,
74    pub(crate) edge_deployment_failed: ::std::option::Option<i32>,
75    pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
76    pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
77}
78impl EdgeDeploymentPlanSummaryBuilder {
79    /// <p>The ARN of the edge deployment plan.</p>
80    /// This field is required.
81    pub fn edge_deployment_plan_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
82        self.edge_deployment_plan_arn = ::std::option::Option::Some(input.into());
83        self
84    }
85    /// <p>The ARN of the edge deployment plan.</p>
86    pub fn set_edge_deployment_plan_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
87        self.edge_deployment_plan_arn = input;
88        self
89    }
90    /// <p>The ARN of the edge deployment plan.</p>
91    pub fn get_edge_deployment_plan_arn(&self) -> &::std::option::Option<::std::string::String> {
92        &self.edge_deployment_plan_arn
93    }
94    /// <p>The name of the edge deployment plan.</p>
95    /// This field is required.
96    pub fn edge_deployment_plan_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
97        self.edge_deployment_plan_name = ::std::option::Option::Some(input.into());
98        self
99    }
100    /// <p>The name of the edge deployment plan.</p>
101    pub fn set_edge_deployment_plan_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
102        self.edge_deployment_plan_name = input;
103        self
104    }
105    /// <p>The name of the edge deployment plan.</p>
106    pub fn get_edge_deployment_plan_name(&self) -> &::std::option::Option<::std::string::String> {
107        &self.edge_deployment_plan_name
108    }
109    /// <p>The name of the device fleet used for the deployment.</p>
110    /// This field is required.
111    pub fn device_fleet_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
112        self.device_fleet_name = ::std::option::Option::Some(input.into());
113        self
114    }
115    /// <p>The name of the device fleet used for the deployment.</p>
116    pub fn set_device_fleet_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
117        self.device_fleet_name = input;
118        self
119    }
120    /// <p>The name of the device fleet used for the deployment.</p>
121    pub fn get_device_fleet_name(&self) -> &::std::option::Option<::std::string::String> {
122        &self.device_fleet_name
123    }
124    /// <p>The number of edge devices with the successful deployment.</p>
125    /// This field is required.
126    pub fn edge_deployment_success(mut self, input: i32) -> Self {
127        self.edge_deployment_success = ::std::option::Option::Some(input);
128        self
129    }
130    /// <p>The number of edge devices with the successful deployment.</p>
131    pub fn set_edge_deployment_success(mut self, input: ::std::option::Option<i32>) -> Self {
132        self.edge_deployment_success = input;
133        self
134    }
135    /// <p>The number of edge devices with the successful deployment.</p>
136    pub fn get_edge_deployment_success(&self) -> &::std::option::Option<i32> {
137        &self.edge_deployment_success
138    }
139    /// <p>The number of edge devices yet to pick up the deployment, or in progress.</p>
140    /// This field is required.
141    pub fn edge_deployment_pending(mut self, input: i32) -> Self {
142        self.edge_deployment_pending = ::std::option::Option::Some(input);
143        self
144    }
145    /// <p>The number of edge devices yet to pick up the deployment, or in progress.</p>
146    pub fn set_edge_deployment_pending(mut self, input: ::std::option::Option<i32>) -> Self {
147        self.edge_deployment_pending = input;
148        self
149    }
150    /// <p>The number of edge devices yet to pick up the deployment, or in progress.</p>
151    pub fn get_edge_deployment_pending(&self) -> &::std::option::Option<i32> {
152        &self.edge_deployment_pending
153    }
154    /// <p>The number of edge devices that failed the deployment.</p>
155    /// This field is required.
156    pub fn edge_deployment_failed(mut self, input: i32) -> Self {
157        self.edge_deployment_failed = ::std::option::Option::Some(input);
158        self
159    }
160    /// <p>The number of edge devices that failed the deployment.</p>
161    pub fn set_edge_deployment_failed(mut self, input: ::std::option::Option<i32>) -> Self {
162        self.edge_deployment_failed = input;
163        self
164    }
165    /// <p>The number of edge devices that failed the deployment.</p>
166    pub fn get_edge_deployment_failed(&self) -> &::std::option::Option<i32> {
167        &self.edge_deployment_failed
168    }
169    /// <p>The time when the edge deployment plan was created.</p>
170    pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
171        self.creation_time = ::std::option::Option::Some(input);
172        self
173    }
174    /// <p>The time when the edge deployment plan was created.</p>
175    pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
176        self.creation_time = input;
177        self
178    }
179    /// <p>The time when the edge deployment plan was created.</p>
180    pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
181        &self.creation_time
182    }
183    /// <p>The time when the edge deployment plan was last updated.</p>
184    pub fn last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
185        self.last_modified_time = ::std::option::Option::Some(input);
186        self
187    }
188    /// <p>The time when the edge deployment plan was last updated.</p>
189    pub fn set_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
190        self.last_modified_time = input;
191        self
192    }
193    /// <p>The time when the edge deployment plan was last updated.</p>
194    pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
195        &self.last_modified_time
196    }
197    /// Consumes the builder and constructs a [`EdgeDeploymentPlanSummary`](crate::types::EdgeDeploymentPlanSummary).
198    pub fn build(self) -> crate::types::EdgeDeploymentPlanSummary {
199        crate::types::EdgeDeploymentPlanSummary {
200            edge_deployment_plan_arn: self.edge_deployment_plan_arn,
201            edge_deployment_plan_name: self.edge_deployment_plan_name,
202            device_fleet_name: self.device_fleet_name,
203            edge_deployment_success: self.edge_deployment_success,
204            edge_deployment_pending: self.edge_deployment_pending,
205            edge_deployment_failed: self.edge_deployment_failed,
206            creation_time: self.creation_time,
207            last_modified_time: self.last_modified_time,
208        }
209    }
210}