aws_sdk_directconnect/operation/describe_loa/
_describe_loa_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DescribeLoaInput {
6 pub connection_id: ::std::option::Option<::std::string::String>,
8 pub provider_name: ::std::option::Option<::std::string::String>,
10 pub loa_content_type: ::std::option::Option<crate::types::LoaContentType>,
12}
13impl DescribeLoaInput {
14 pub fn connection_id(&self) -> ::std::option::Option<&str> {
16 self.connection_id.as_deref()
17 }
18 pub fn provider_name(&self) -> ::std::option::Option<&str> {
20 self.provider_name.as_deref()
21 }
22 pub fn loa_content_type(&self) -> ::std::option::Option<&crate::types::LoaContentType> {
24 self.loa_content_type.as_ref()
25 }
26}
27impl DescribeLoaInput {
28 pub fn builder() -> crate::operation::describe_loa::builders::DescribeLoaInputBuilder {
30 crate::operation::describe_loa::builders::DescribeLoaInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct DescribeLoaInputBuilder {
38 pub(crate) connection_id: ::std::option::Option<::std::string::String>,
39 pub(crate) provider_name: ::std::option::Option<::std::string::String>,
40 pub(crate) loa_content_type: ::std::option::Option<crate::types::LoaContentType>,
41}
42impl DescribeLoaInputBuilder {
43 pub fn connection_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.connection_id = ::std::option::Option::Some(input.into());
47 self
48 }
49 pub fn set_connection_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.connection_id = input;
52 self
53 }
54 pub fn get_connection_id(&self) -> &::std::option::Option<::std::string::String> {
56 &self.connection_id
57 }
58 pub fn provider_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60 self.provider_name = ::std::option::Option::Some(input.into());
61 self
62 }
63 pub fn set_provider_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65 self.provider_name = input;
66 self
67 }
68 pub fn get_provider_name(&self) -> &::std::option::Option<::std::string::String> {
70 &self.provider_name
71 }
72 pub fn loa_content_type(mut self, input: crate::types::LoaContentType) -> Self {
74 self.loa_content_type = ::std::option::Option::Some(input);
75 self
76 }
77 pub fn set_loa_content_type(mut self, input: ::std::option::Option<crate::types::LoaContentType>) -> Self {
79 self.loa_content_type = input;
80 self
81 }
82 pub fn get_loa_content_type(&self) -> &::std::option::Option<crate::types::LoaContentType> {
84 &self.loa_content_type
85 }
86 pub fn build(self) -> ::std::result::Result<crate::operation::describe_loa::DescribeLoaInput, ::aws_smithy_types::error::operation::BuildError> {
88 ::std::result::Result::Ok(crate::operation::describe_loa::DescribeLoaInput {
89 connection_id: self.connection_id,
90 provider_name: self.provider_name,
91 loa_content_type: self.loa_content_type,
92 })
93 }
94}