1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateCertificateOptionsInput {
/// <p>ARN of the requested certificate to update. This must be of the form:</p>
/// <p><code>arn:aws:acm:us-east-1:<i>account</i>:certificate/<i>12345678-1234-1234-1234-123456789012</i> </code></p>
pub certificate_arn: ::std::option::Option<::std::string::String>,
/// <p>Use to update the options for your certificate. Currently, you can specify whether to add your certificate to a transparency log or export your certificate. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser.</p>
pub options: ::std::option::Option<crate::types::CertificateOptions>,
}
impl UpdateCertificateOptionsInput {
/// <p>ARN of the requested certificate to update. This must be of the form:</p>
/// <p><code>arn:aws:acm:us-east-1:<i>account</i>:certificate/<i>12345678-1234-1234-1234-123456789012</i> </code></p>
pub fn certificate_arn(&self) -> ::std::option::Option<&str> {
self.certificate_arn.as_deref()
}
/// <p>Use to update the options for your certificate. Currently, you can specify whether to add your certificate to a transparency log or export your certificate. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser.</p>
pub fn options(&self) -> ::std::option::Option<&crate::types::CertificateOptions> {
self.options.as_ref()
}
}
impl UpdateCertificateOptionsInput {
/// Creates a new builder-style object to manufacture [`UpdateCertificateOptionsInput`](crate::operation::update_certificate_options::UpdateCertificateOptionsInput).
pub fn builder() -> crate::operation::update_certificate_options::builders::UpdateCertificateOptionsInputBuilder {
crate::operation::update_certificate_options::builders::UpdateCertificateOptionsInputBuilder::default()
}
}
/// A builder for [`UpdateCertificateOptionsInput`](crate::operation::update_certificate_options::UpdateCertificateOptionsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateCertificateOptionsInputBuilder {
pub(crate) certificate_arn: ::std::option::Option<::std::string::String>,
pub(crate) options: ::std::option::Option<crate::types::CertificateOptions>,
}
impl UpdateCertificateOptionsInputBuilder {
/// <p>ARN of the requested certificate to update. This must be of the form:</p>
/// <p><code>arn:aws:acm:us-east-1:<i>account</i>:certificate/<i>12345678-1234-1234-1234-123456789012</i> </code></p>
/// This field is required.
pub fn certificate_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.certificate_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>ARN of the requested certificate to update. This must be of the form:</p>
/// <p><code>arn:aws:acm:us-east-1:<i>account</i>:certificate/<i>12345678-1234-1234-1234-123456789012</i> </code></p>
pub fn set_certificate_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.certificate_arn = input;
self
}
/// <p>ARN of the requested certificate to update. This must be of the form:</p>
/// <p><code>arn:aws:acm:us-east-1:<i>account</i>:certificate/<i>12345678-1234-1234-1234-123456789012</i> </code></p>
pub fn get_certificate_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.certificate_arn
}
/// <p>Use to update the options for your certificate. Currently, you can specify whether to add your certificate to a transparency log or export your certificate. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser.</p>
/// This field is required.
pub fn options(mut self, input: crate::types::CertificateOptions) -> Self {
self.options = ::std::option::Option::Some(input);
self
}
/// <p>Use to update the options for your certificate. Currently, you can specify whether to add your certificate to a transparency log or export your certificate. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser.</p>
pub fn set_options(mut self, input: ::std::option::Option<crate::types::CertificateOptions>) -> Self {
self.options = input;
self
}
/// <p>Use to update the options for your certificate. Currently, you can specify whether to add your certificate to a transparency log or export your certificate. Certificate transparency makes it possible to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates that have not been logged typically produce an error message in a browser.</p>
pub fn get_options(&self) -> &::std::option::Option<crate::types::CertificateOptions> {
&self.options
}
/// Consumes the builder and constructs a [`UpdateCertificateOptionsInput`](crate::operation::update_certificate_options::UpdateCertificateOptionsInput).
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::update_certificate_options::UpdateCertificateOptionsInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::update_certificate_options::UpdateCertificateOptionsInput {
certificate_arn: self.certificate_arn,
options: self.options,
})
}
}