aws_sdk_sms/operation/terminate_app/
_terminate_app_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 TerminateAppInput {
6    /// <p>The ID of the application.</p>
7    pub app_id: ::std::option::Option<::std::string::String>,
8}
9impl TerminateAppInput {
10    /// <p>The ID of the application.</p>
11    pub fn app_id(&self) -> ::std::option::Option<&str> {
12        self.app_id.as_deref()
13    }
14}
15impl TerminateAppInput {
16    /// Creates a new builder-style object to manufacture [`TerminateAppInput`](crate::operation::terminate_app::TerminateAppInput).
17    pub fn builder() -> crate::operation::terminate_app::builders::TerminateAppInputBuilder {
18        crate::operation::terminate_app::builders::TerminateAppInputBuilder::default()
19    }
20}
21
22/// A builder for [`TerminateAppInput`](crate::operation::terminate_app::TerminateAppInput).
23#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
24#[non_exhaustive]
25pub struct TerminateAppInputBuilder {
26    pub(crate) app_id: ::std::option::Option<::std::string::String>,
27}
28impl TerminateAppInputBuilder {
29    /// <p>The ID of the application.</p>
30    pub fn app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
31        self.app_id = ::std::option::Option::Some(input.into());
32        self
33    }
34    /// <p>The ID of the application.</p>
35    pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
36        self.app_id = input;
37        self
38    }
39    /// <p>The ID of the application.</p>
40    pub fn get_app_id(&self) -> &::std::option::Option<::std::string::String> {
41        &self.app_id
42    }
43    /// Consumes the builder and constructs a [`TerminateAppInput`](crate::operation::terminate_app::TerminateAppInput).
44    pub fn build(
45        self,
46    ) -> ::std::result::Result<crate::operation::terminate_app::TerminateAppInput, ::aws_smithy_types::error::operation::BuildError> {
47        ::std::result::Result::Ok(crate::operation::terminate_app::TerminateAppInput { app_id: self.app_id })
48    }
49}