aws_sdk_acm/operation/request_certificate/
_request_certificate_output.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 RequestCertificateOutput {
6    /// <p>String that contains the ARN of the issued certificate. This must be of the form:</p>
7    /// <p><code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code></p>
8    pub certificate_arn: ::std::option::Option<::std::string::String>,
9    _request_id: Option<String>,
10}
11impl RequestCertificateOutput {
12    /// <p>String that contains the ARN of the issued certificate. This must be of the form:</p>
13    /// <p><code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code></p>
14    pub fn certificate_arn(&self) -> ::std::option::Option<&str> {
15        self.certificate_arn.as_deref()
16    }
17}
18impl ::aws_types::request_id::RequestId for RequestCertificateOutput {
19    fn request_id(&self) -> Option<&str> {
20        self._request_id.as_deref()
21    }
22}
23impl RequestCertificateOutput {
24    /// Creates a new builder-style object to manufacture [`RequestCertificateOutput`](crate::operation::request_certificate::RequestCertificateOutput).
25    pub fn builder() -> crate::operation::request_certificate::builders::RequestCertificateOutputBuilder {
26        crate::operation::request_certificate::builders::RequestCertificateOutputBuilder::default()
27    }
28}
29
30/// A builder for [`RequestCertificateOutput`](crate::operation::request_certificate::RequestCertificateOutput).
31#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
32#[non_exhaustive]
33pub struct RequestCertificateOutputBuilder {
34    pub(crate) certificate_arn: ::std::option::Option<::std::string::String>,
35    _request_id: Option<String>,
36}
37impl RequestCertificateOutputBuilder {
38    /// <p>String that contains the ARN of the issued certificate. This must be of the form:</p>
39    /// <p><code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code></p>
40    pub fn certificate_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
41        self.certificate_arn = ::std::option::Option::Some(input.into());
42        self
43    }
44    /// <p>String that contains the ARN of the issued certificate. This must be of the form:</p>
45    /// <p><code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code></p>
46    pub fn set_certificate_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
47        self.certificate_arn = input;
48        self
49    }
50    /// <p>String that contains the ARN of the issued certificate. This must be of the form:</p>
51    /// <p><code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code></p>
52    pub fn get_certificate_arn(&self) -> &::std::option::Option<::std::string::String> {
53        &self.certificate_arn
54    }
55    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
56        self._request_id = Some(request_id.into());
57        self
58    }
59
60    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
61        self._request_id = request_id;
62        self
63    }
64    /// Consumes the builder and constructs a [`RequestCertificateOutput`](crate::operation::request_certificate::RequestCertificateOutput).
65    pub fn build(self) -> crate::operation::request_certificate::RequestCertificateOutput {
66        crate::operation::request_certificate::RequestCertificateOutput {
67            certificate_arn: self.certificate_arn,
68            _request_id: self._request_id,
69        }
70    }
71}