aws_sdk_directconnect/operation/describe_loa/
_describe_loa_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Information about a Letter of Authorization - Connecting Facility Assignment (LOA-CFA) for a connection.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DescribeLoaOutput {
7    /// <p>The binary contents of the LOA-CFA document.</p>
8    pub loa_content: ::std::option::Option<::aws_smithy_types::Blob>,
9    /// <p>The standard media type for the LOA-CFA document. The only supported value is application/pdf.</p>
10    pub loa_content_type: ::std::option::Option<crate::types::LoaContentType>,
11    _request_id: Option<String>,
12}
13impl DescribeLoaOutput {
14    /// <p>The binary contents of the LOA-CFA document.</p>
15    pub fn loa_content(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
16        self.loa_content.as_ref()
17    }
18    /// <p>The standard media type for the LOA-CFA document. The only supported value is application/pdf.</p>
19    pub fn loa_content_type(&self) -> ::std::option::Option<&crate::types::LoaContentType> {
20        self.loa_content_type.as_ref()
21    }
22}
23impl ::aws_types::request_id::RequestId for DescribeLoaOutput {
24    fn request_id(&self) -> Option<&str> {
25        self._request_id.as_deref()
26    }
27}
28impl DescribeLoaOutput {
29    /// Creates a new builder-style object to manufacture [`DescribeLoaOutput`](crate::operation::describe_loa::DescribeLoaOutput).
30    pub fn builder() -> crate::operation::describe_loa::builders::DescribeLoaOutputBuilder {
31        crate::operation::describe_loa::builders::DescribeLoaOutputBuilder::default()
32    }
33}
34
35/// A builder for [`DescribeLoaOutput`](crate::operation::describe_loa::DescribeLoaOutput).
36#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
37#[non_exhaustive]
38pub struct DescribeLoaOutputBuilder {
39    pub(crate) loa_content: ::std::option::Option<::aws_smithy_types::Blob>,
40    pub(crate) loa_content_type: ::std::option::Option<crate::types::LoaContentType>,
41    _request_id: Option<String>,
42}
43impl DescribeLoaOutputBuilder {
44    /// <p>The binary contents of the LOA-CFA document.</p>
45    pub fn loa_content(mut self, input: ::aws_smithy_types::Blob) -> Self {
46        self.loa_content = ::std::option::Option::Some(input);
47        self
48    }
49    /// <p>The binary contents of the LOA-CFA document.</p>
50    pub fn set_loa_content(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
51        self.loa_content = input;
52        self
53    }
54    /// <p>The binary contents of the LOA-CFA document.</p>
55    pub fn get_loa_content(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
56        &self.loa_content
57    }
58    /// <p>The standard media type for the LOA-CFA document. The only supported value is application/pdf.</p>
59    pub fn loa_content_type(mut self, input: crate::types::LoaContentType) -> Self {
60        self.loa_content_type = ::std::option::Option::Some(input);
61        self
62    }
63    /// <p>The standard media type for the LOA-CFA document. The only supported value is application/pdf.</p>
64    pub fn set_loa_content_type(mut self, input: ::std::option::Option<crate::types::LoaContentType>) -> Self {
65        self.loa_content_type = input;
66        self
67    }
68    /// <p>The standard media type for the LOA-CFA document. The only supported value is application/pdf.</p>
69    pub fn get_loa_content_type(&self) -> &::std::option::Option<crate::types::LoaContentType> {
70        &self.loa_content_type
71    }
72    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
73        self._request_id = Some(request_id.into());
74        self
75    }
76
77    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
78        self._request_id = request_id;
79        self
80    }
81    /// Consumes the builder and constructs a [`DescribeLoaOutput`](crate::operation::describe_loa::DescribeLoaOutput).
82    pub fn build(self) -> crate::operation::describe_loa::DescribeLoaOutput {
83        crate::operation::describe_loa::DescribeLoaOutput {
84            loa_content: self.loa_content,
85            loa_content_type: self.loa_content_type,
86            _request_id: self._request_id,
87        }
88    }
89}