aws_sdk_directconnect/operation/describe_loa/
_describe_loa_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 DescribeLoaInput {
6    /// <p>The ID of a connection, LAG, or interconnect.</p>
7    pub connection_id: ::std::option::Option<::std::string::String>,
8    /// <p>The name of the service provider who establishes connectivity on your behalf. If you specify this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.</p>
9    pub provider_name: ::std::option::Option<::std::string::String>,
10    /// <p>The standard media type for the LOA-CFA document. The only supported value is application/pdf.</p>
11    pub loa_content_type: ::std::option::Option<crate::types::LoaContentType>,
12}
13impl DescribeLoaInput {
14    /// <p>The ID of a connection, LAG, or interconnect.</p>
15    pub fn connection_id(&self) -> ::std::option::Option<&str> {
16        self.connection_id.as_deref()
17    }
18    /// <p>The name of the service provider who establishes connectivity on your behalf. If you specify this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.</p>
19    pub fn provider_name(&self) -> ::std::option::Option<&str> {
20        self.provider_name.as_deref()
21    }
22    /// <p>The standard media type for the LOA-CFA document. The only supported value is application/pdf.</p>
23    pub fn loa_content_type(&self) -> ::std::option::Option<&crate::types::LoaContentType> {
24        self.loa_content_type.as_ref()
25    }
26}
27impl DescribeLoaInput {
28    /// Creates a new builder-style object to manufacture [`DescribeLoaInput`](crate::operation::describe_loa::DescribeLoaInput).
29    pub fn builder() -> crate::operation::describe_loa::builders::DescribeLoaInputBuilder {
30        crate::operation::describe_loa::builders::DescribeLoaInputBuilder::default()
31    }
32}
33
34/// A builder for [`DescribeLoaInput`](crate::operation::describe_loa::DescribeLoaInput).
35#[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    /// <p>The ID of a connection, LAG, or interconnect.</p>
44    /// This field is required.
45    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    /// <p>The ID of a connection, LAG, or interconnect.</p>
50    pub fn set_connection_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51        self.connection_id = input;
52        self
53    }
54    /// <p>The ID of a connection, LAG, or interconnect.</p>
55    pub fn get_connection_id(&self) -> &::std::option::Option<::std::string::String> {
56        &self.connection_id
57    }
58    /// <p>The name of the service provider who establishes connectivity on your behalf. If you specify this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.</p>
59    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    /// <p>The name of the service provider who establishes connectivity on your behalf. If you specify this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.</p>
64    pub fn set_provider_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65        self.provider_name = input;
66        self
67    }
68    /// <p>The name of the service provider who establishes connectivity on your behalf. If you specify this parameter, the LOA-CFA lists the provider name alongside your company name as the requester of the cross connect.</p>
69    pub fn get_provider_name(&self) -> &::std::option::Option<::std::string::String> {
70        &self.provider_name
71    }
72    /// <p>The standard media type for the LOA-CFA document. The only supported value is application/pdf.</p>
73    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    /// <p>The standard media type for the LOA-CFA document. The only supported value is application/pdf.</p>
78    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    /// <p>The standard media type for the LOA-CFA document. The only supported value is application/pdf.</p>
83    pub fn get_loa_content_type(&self) -> &::std::option::Option<crate::types::LoaContentType> {
84        &self.loa_content_type
85    }
86    /// Consumes the builder and constructs a [`DescribeLoaInput`](crate::operation::describe_loa::DescribeLoaInput).
87    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}