aws_sdk_sms/operation/get_app/
_get_app_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetAppInput {
6 pub app_id: ::std::option::Option<::std::string::String>,
8}
9impl GetAppInput {
10 pub fn app_id(&self) -> ::std::option::Option<&str> {
12 self.app_id.as_deref()
13 }
14}
15impl GetAppInput {
16 pub fn builder() -> crate::operation::get_app::builders::GetAppInputBuilder {
18 crate::operation::get_app::builders::GetAppInputBuilder::default()
19 }
20}
21
22#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
24#[non_exhaustive]
25pub struct GetAppInputBuilder {
26 pub(crate) app_id: ::std::option::Option<::std::string::String>,
27}
28impl GetAppInputBuilder {
29 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 pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
36 self.app_id = input;
37 self
38 }
39 pub fn get_app_id(&self) -> &::std::option::Option<::std::string::String> {
41 &self.app_id
42 }
43 pub fn build(self) -> ::std::result::Result<crate::operation::get_app::GetAppInput, ::aws_smithy_types::error::operation::BuildError> {
45 ::std::result::Result::Ok(crate::operation::get_app::GetAppInput { app_id: self.app_id })
46 }
47}