1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeAppVersionAppComponentInput {
/// <p>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
pub app_arn: ::std::option::Option<::std::string::String>,
/// <p>Resilience Hub application version.</p>
pub app_version: ::std::option::Option<::std::string::String>,
/// <p>Identifier of the Application Component.</p>
pub id: ::std::option::Option<::std::string::String>,
}
impl DescribeAppVersionAppComponentInput {
/// <p>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
pub fn app_arn(&self) -> ::std::option::Option<&str> {
self.app_arn.as_deref()
}
/// <p>Resilience Hub application version.</p>
pub fn app_version(&self) -> ::std::option::Option<&str> {
self.app_version.as_deref()
}
/// <p>Identifier of the Application Component.</p>
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
}
impl DescribeAppVersionAppComponentInput {
/// Creates a new builder-style object to manufacture [`DescribeAppVersionAppComponentInput`](crate::operation::describe_app_version_app_component::DescribeAppVersionAppComponentInput).
pub fn builder() -> crate::operation::describe_app_version_app_component::builders::DescribeAppVersionAppComponentInputBuilder {
crate::operation::describe_app_version_app_component::builders::DescribeAppVersionAppComponentInputBuilder::default()
}
}
/// A builder for [`DescribeAppVersionAppComponentInput`](crate::operation::describe_app_version_app_component::DescribeAppVersionAppComponentInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DescribeAppVersionAppComponentInputBuilder {
pub(crate) app_arn: ::std::option::Option<::std::string::String>,
pub(crate) app_version: ::std::option::Option<::std::string::String>,
pub(crate) id: ::std::option::Option<::std::string::String>,
}
impl DescribeAppVersionAppComponentInputBuilder {
/// <p>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
/// This field is required.
pub fn app_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.app_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
pub fn set_app_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.app_arn = input;
self
}
/// <p>Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:app/<code>app-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>
pub fn get_app_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.app_arn
}
/// <p>Resilience Hub application version.</p>
/// This field is required.
pub fn app_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.app_version = ::std::option::Option::Some(input.into());
self
}
/// <p>Resilience Hub application version.</p>
pub fn set_app_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.app_version = input;
self
}
/// <p>Resilience Hub application version.</p>
pub fn get_app_version(&self) -> &::std::option::Option<::std::string::String> {
&self.app_version
}
/// <p>Identifier of the Application Component.</p>
/// This field is required.
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
/// <p>Identifier of the Application Component.</p>
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
/// <p>Identifier of the Application Component.</p>
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
/// Consumes the builder and constructs a [`DescribeAppVersionAppComponentInput`](crate::operation::describe_app_version_app_component::DescribeAppVersionAppComponentInput).
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::describe_app_version_app_component::DescribeAppVersionAppComponentInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(
crate::operation::describe_app_version_app_component::DescribeAppVersionAppComponentInput {
app_arn: self.app_arn,
app_version: self.app_version,
id: self.id,
},
)
}
}