aws_sdk_mgn/operation/update_wave/
_update_wave_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateWaveInput {
6 pub wave_id: ::std::option::Option<::std::string::String>,
8 pub name: ::std::option::Option<::std::string::String>,
10 pub description: ::std::option::Option<::std::string::String>,
12 pub account_id: ::std::option::Option<::std::string::String>,
14}
15impl UpdateWaveInput {
16 pub fn wave_id(&self) -> ::std::option::Option<&str> {
18 self.wave_id.as_deref()
19 }
20 pub fn name(&self) -> ::std::option::Option<&str> {
22 self.name.as_deref()
23 }
24 pub fn description(&self) -> ::std::option::Option<&str> {
26 self.description.as_deref()
27 }
28 pub fn account_id(&self) -> ::std::option::Option<&str> {
30 self.account_id.as_deref()
31 }
32}
33impl UpdateWaveInput {
34 pub fn builder() -> crate::operation::update_wave::builders::UpdateWaveInputBuilder {
36 crate::operation::update_wave::builders::UpdateWaveInputBuilder::default()
37 }
38}
39
40#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct UpdateWaveInputBuilder {
44 pub(crate) wave_id: ::std::option::Option<::std::string::String>,
45 pub(crate) name: ::std::option::Option<::std::string::String>,
46 pub(crate) description: ::std::option::Option<::std::string::String>,
47 pub(crate) account_id: ::std::option::Option<::std::string::String>,
48}
49impl UpdateWaveInputBuilder {
50 pub fn wave_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53 self.wave_id = ::std::option::Option::Some(input.into());
54 self
55 }
56 pub fn set_wave_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.wave_id = input;
59 self
60 }
61 pub fn get_wave_id(&self) -> &::std::option::Option<::std::string::String> {
63 &self.wave_id
64 }
65 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
67 self.name = ::std::option::Option::Some(input.into());
68 self
69 }
70 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72 self.name = input;
73 self
74 }
75 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
77 &self.name
78 }
79 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
81 self.description = ::std::option::Option::Some(input.into());
82 self
83 }
84 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
86 self.description = input;
87 self
88 }
89 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
91 &self.description
92 }
93 pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
95 self.account_id = ::std::option::Option::Some(input.into());
96 self
97 }
98 pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
100 self.account_id = input;
101 self
102 }
103 pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
105 &self.account_id
106 }
107 pub fn build(self) -> ::std::result::Result<crate::operation::update_wave::UpdateWaveInput, ::aws_smithy_types::error::operation::BuildError> {
109 ::std::result::Result::Ok(crate::operation::update_wave::UpdateWaveInput {
110 wave_id: self.wave_id,
111 name: self.name,
112 description: self.description,
113 account_id: self.account_id,
114 })
115 }
116}