aws_sdk_mgn/operation/delete_wave/
_delete_wave_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteWaveInput {
6    /// <p>Wave ID.</p>
7    pub wave_id: ::std::option::Option<::std::string::String>,
8    /// <p>Account ID.</p>
9    pub account_id: ::std::option::Option<::std::string::String>,
10}
11impl DeleteWaveInput {
12    /// <p>Wave ID.</p>
13    pub fn wave_id(&self) -> ::std::option::Option<&str> {
14        self.wave_id.as_deref()
15    }
16    /// <p>Account ID.</p>
17    pub fn account_id(&self) -> ::std::option::Option<&str> {
18        self.account_id.as_deref()
19    }
20}
21impl DeleteWaveInput {
22    /// Creates a new builder-style object to manufacture [`DeleteWaveInput`](crate::operation::delete_wave::DeleteWaveInput).
23    pub fn builder() -> crate::operation::delete_wave::builders::DeleteWaveInputBuilder {
24        crate::operation::delete_wave::builders::DeleteWaveInputBuilder::default()
25    }
26}
27
28/// A builder for [`DeleteWaveInput`](crate::operation::delete_wave::DeleteWaveInput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct DeleteWaveInputBuilder {
32    pub(crate) wave_id: ::std::option::Option<::std::string::String>,
33    pub(crate) account_id: ::std::option::Option<::std::string::String>,
34}
35impl DeleteWaveInputBuilder {
36    /// <p>Wave ID.</p>
37    /// This field is required.
38    pub fn wave_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39        self.wave_id = ::std::option::Option::Some(input.into());
40        self
41    }
42    /// <p>Wave ID.</p>
43    pub fn set_wave_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44        self.wave_id = input;
45        self
46    }
47    /// <p>Wave ID.</p>
48    pub fn get_wave_id(&self) -> &::std::option::Option<::std::string::String> {
49        &self.wave_id
50    }
51    /// <p>Account ID.</p>
52    pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53        self.account_id = ::std::option::Option::Some(input.into());
54        self
55    }
56    /// <p>Account ID.</p>
57    pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58        self.account_id = input;
59        self
60    }
61    /// <p>Account ID.</p>
62    pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
63        &self.account_id
64    }
65    /// Consumes the builder and constructs a [`DeleteWaveInput`](crate::operation::delete_wave::DeleteWaveInput).
66    pub fn build(self) -> ::std::result::Result<crate::operation::delete_wave::DeleteWaveInput, ::aws_smithy_types::error::operation::BuildError> {
67        ::std::result::Result::Ok(crate::operation::delete_wave::DeleteWaveInput {
68            wave_id: self.wave_id,
69            account_id: self.account_id,
70        })
71    }
72}