aws_sdk_applicationinsights/operation/describe_component/
_describe_component_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DescribeComponentInput {
6 pub resource_group_name: ::std::option::Option<::std::string::String>,
8 pub component_name: ::std::option::Option<::std::string::String>,
10 pub account_id: ::std::option::Option<::std::string::String>,
12}
13impl DescribeComponentInput {
14 pub fn resource_group_name(&self) -> ::std::option::Option<&str> {
16 self.resource_group_name.as_deref()
17 }
18 pub fn component_name(&self) -> ::std::option::Option<&str> {
20 self.component_name.as_deref()
21 }
22 pub fn account_id(&self) -> ::std::option::Option<&str> {
24 self.account_id.as_deref()
25 }
26}
27impl DescribeComponentInput {
28 pub fn builder() -> crate::operation::describe_component::builders::DescribeComponentInputBuilder {
30 crate::operation::describe_component::builders::DescribeComponentInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct DescribeComponentInputBuilder {
38 pub(crate) resource_group_name: ::std::option::Option<::std::string::String>,
39 pub(crate) component_name: ::std::option::Option<::std::string::String>,
40 pub(crate) account_id: ::std::option::Option<::std::string::String>,
41}
42impl DescribeComponentInputBuilder {
43 pub fn resource_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.resource_group_name = ::std::option::Option::Some(input.into());
47 self
48 }
49 pub fn set_resource_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.resource_group_name = input;
52 self
53 }
54 pub fn get_resource_group_name(&self) -> &::std::option::Option<::std::string::String> {
56 &self.resource_group_name
57 }
58 pub fn component_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
61 self.component_name = ::std::option::Option::Some(input.into());
62 self
63 }
64 pub fn set_component_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66 self.component_name = input;
67 self
68 }
69 pub fn get_component_name(&self) -> &::std::option::Option<::std::string::String> {
71 &self.component_name
72 }
73 pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
75 self.account_id = ::std::option::Option::Some(input.into());
76 self
77 }
78 pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
80 self.account_id = input;
81 self
82 }
83 pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
85 &self.account_id
86 }
87 pub fn build(
89 self,
90 ) -> ::std::result::Result<crate::operation::describe_component::DescribeComponentInput, ::aws_smithy_types::error::operation::BuildError> {
91 ::std::result::Result::Ok(crate::operation::describe_component::DescribeComponentInput {
92 resource_group_name: self.resource_group_name,
93 component_name: self.component_name,
94 account_id: self.account_id,
95 })
96 }
97}