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
// 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 NotifyApplicationStateInput {
/// <p>The configurationId in Application Discovery Service that uniquely identifies the grouped application.</p>
pub application_id: ::std::option::Option<::std::string::String>,
/// <p>Status of the application - Not Started, In-Progress, Complete.</p>
pub status: ::std::option::Option<crate::types::ApplicationStatus>,
/// <p>The timestamp when the application state changed.</p>
pub update_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.</p>
pub dry_run: ::std::option::Option<bool>,
}
impl NotifyApplicationStateInput {
/// <p>The configurationId in Application Discovery Service that uniquely identifies the grouped application.</p>
pub fn application_id(&self) -> ::std::option::Option<&str> {
self.application_id.as_deref()
}
/// <p>Status of the application - Not Started, In-Progress, Complete.</p>
pub fn status(&self) -> ::std::option::Option<&crate::types::ApplicationStatus> {
self.status.as_ref()
}
/// <p>The timestamp when the application state changed.</p>
pub fn update_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.update_date_time.as_ref()
}
/// <p>Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.</p>
pub fn dry_run(&self) -> ::std::option::Option<bool> {
self.dry_run
}
}
impl NotifyApplicationStateInput {
/// Creates a new builder-style object to manufacture [`NotifyApplicationStateInput`](crate::operation::notify_application_state::NotifyApplicationStateInput).
pub fn builder() -> crate::operation::notify_application_state::builders::NotifyApplicationStateInputBuilder {
crate::operation::notify_application_state::builders::NotifyApplicationStateInputBuilder::default()
}
}
/// A builder for [`NotifyApplicationStateInput`](crate::operation::notify_application_state::NotifyApplicationStateInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct NotifyApplicationStateInputBuilder {
pub(crate) application_id: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::ApplicationStatus>,
pub(crate) update_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) dry_run: ::std::option::Option<bool>,
}
impl NotifyApplicationStateInputBuilder {
/// <p>The configurationId in Application Discovery Service that uniquely identifies the grouped application.</p>
/// This field is required.
pub fn application_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.application_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The configurationId in Application Discovery Service that uniquely identifies the grouped application.</p>
pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.application_id = input;
self
}
/// <p>The configurationId in Application Discovery Service that uniquely identifies the grouped application.</p>
pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
&self.application_id
}
/// <p>Status of the application - Not Started, In-Progress, Complete.</p>
/// This field is required.
pub fn status(mut self, input: crate::types::ApplicationStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
/// <p>Status of the application - Not Started, In-Progress, Complete.</p>
pub fn set_status(mut self, input: ::std::option::Option<crate::types::ApplicationStatus>) -> Self {
self.status = input;
self
}
/// <p>Status of the application - Not Started, In-Progress, Complete.</p>
pub fn get_status(&self) -> &::std::option::Option<crate::types::ApplicationStatus> {
&self.status
}
/// <p>The timestamp when the application state changed.</p>
pub fn update_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.update_date_time = ::std::option::Option::Some(input);
self
}
/// <p>The timestamp when the application state changed.</p>
pub fn set_update_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.update_date_time = input;
self
}
/// <p>The timestamp when the application state changed.</p>
pub fn get_update_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.update_date_time
}
/// <p>Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.</p>
pub fn dry_run(mut self, input: bool) -> Self {
self.dry_run = ::std::option::Option::Some(input);
self
}
/// <p>Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.</p>
pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
self.dry_run = input;
self
}
/// <p>Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.</p>
pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
&self.dry_run
}
/// Consumes the builder and constructs a [`NotifyApplicationStateInput`](crate::operation::notify_application_state::NotifyApplicationStateInput).
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::notify_application_state::NotifyApplicationStateInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::notify_application_state::NotifyApplicationStateInput {
application_id: self.application_id,
status: self.status,
update_date_time: self.update_date_time,
dry_run: self.dry_run,
})
}
}