aws_sdk_ssmsap/operation/get_application/
_get_application_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 GetApplicationInput {
6    /// <p>The ID of the application.</p>
7    pub application_id: ::std::option::Option<::std::string::String>,
8    /// <p>The Amazon Resource Name (ARN) of the application.</p>
9    pub application_arn: ::std::option::Option<::std::string::String>,
10    /// <p>The Amazon Resource Name (ARN) of the application registry.</p>
11    pub app_registry_arn: ::std::option::Option<::std::string::String>,
12}
13impl GetApplicationInput {
14    /// <p>The ID of the application.</p>
15    pub fn application_id(&self) -> ::std::option::Option<&str> {
16        self.application_id.as_deref()
17    }
18    /// <p>The Amazon Resource Name (ARN) of the application.</p>
19    pub fn application_arn(&self) -> ::std::option::Option<&str> {
20        self.application_arn.as_deref()
21    }
22    /// <p>The Amazon Resource Name (ARN) of the application registry.</p>
23    pub fn app_registry_arn(&self) -> ::std::option::Option<&str> {
24        self.app_registry_arn.as_deref()
25    }
26}
27impl GetApplicationInput {
28    /// Creates a new builder-style object to manufacture [`GetApplicationInput`](crate::operation::get_application::GetApplicationInput).
29    pub fn builder() -> crate::operation::get_application::builders::GetApplicationInputBuilder {
30        crate::operation::get_application::builders::GetApplicationInputBuilder::default()
31    }
32}
33
34/// A builder for [`GetApplicationInput`](crate::operation::get_application::GetApplicationInput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct GetApplicationInputBuilder {
38    pub(crate) application_id: ::std::option::Option<::std::string::String>,
39    pub(crate) application_arn: ::std::option::Option<::std::string::String>,
40    pub(crate) app_registry_arn: ::std::option::Option<::std::string::String>,
41}
42impl GetApplicationInputBuilder {
43    /// <p>The ID of the application.</p>
44    pub fn application_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
45        self.application_id = ::std::option::Option::Some(input.into());
46        self
47    }
48    /// <p>The ID of the application.</p>
49    pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
50        self.application_id = input;
51        self
52    }
53    /// <p>The ID of the application.</p>
54    pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
55        &self.application_id
56    }
57    /// <p>The Amazon Resource Name (ARN) of the application.</p>
58    pub fn application_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
59        self.application_arn = ::std::option::Option::Some(input.into());
60        self
61    }
62    /// <p>The Amazon Resource Name (ARN) of the application.</p>
63    pub fn set_application_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
64        self.application_arn = input;
65        self
66    }
67    /// <p>The Amazon Resource Name (ARN) of the application.</p>
68    pub fn get_application_arn(&self) -> &::std::option::Option<::std::string::String> {
69        &self.application_arn
70    }
71    /// <p>The Amazon Resource Name (ARN) of the application registry.</p>
72    pub fn app_registry_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
73        self.app_registry_arn = ::std::option::Option::Some(input.into());
74        self
75    }
76    /// <p>The Amazon Resource Name (ARN) of the application registry.</p>
77    pub fn set_app_registry_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
78        self.app_registry_arn = input;
79        self
80    }
81    /// <p>The Amazon Resource Name (ARN) of the application registry.</p>
82    pub fn get_app_registry_arn(&self) -> &::std::option::Option<::std::string::String> {
83        &self.app_registry_arn
84    }
85    /// Consumes the builder and constructs a [`GetApplicationInput`](crate::operation::get_application::GetApplicationInput).
86    pub fn build(
87        self,
88    ) -> ::std::result::Result<crate::operation::get_application::GetApplicationInput, ::aws_smithy_types::error::operation::BuildError> {
89        ::std::result::Result::Ok(crate::operation::get_application::GetApplicationInput {
90            application_id: self.application_id,
91            application_arn: self.application_arn,
92            app_registry_arn: self.app_registry_arn,
93        })
94    }
95}