aws_sdk_rds/operation/modify_certificates/_modify_certificates_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 ModifyCertificatesInput {
6 /// <p>The new default certificate identifier to override the current one with.</p>
7 /// <p>To determine the valid values, use the <code>describe-certificates</code> CLI command or the <code>DescribeCertificates</code> API operation.</p>
8 pub certificate_identifier: ::std::option::Option<::std::string::String>,
9 /// <p>Specifies whether to remove the override for the default certificate. If the override is removed, the default certificate is the system default.</p>
10 pub remove_customer_override: ::std::option::Option<bool>,
11}
12impl ModifyCertificatesInput {
13 /// <p>The new default certificate identifier to override the current one with.</p>
14 /// <p>To determine the valid values, use the <code>describe-certificates</code> CLI command or the <code>DescribeCertificates</code> API operation.</p>
15 pub fn certificate_identifier(&self) -> ::std::option::Option<&str> {
16 self.certificate_identifier.as_deref()
17 }
18 /// <p>Specifies whether to remove the override for the default certificate. If the override is removed, the default certificate is the system default.</p>
19 pub fn remove_customer_override(&self) -> ::std::option::Option<bool> {
20 self.remove_customer_override
21 }
22}
23impl ModifyCertificatesInput {
24 /// Creates a new builder-style object to manufacture [`ModifyCertificatesInput`](crate::operation::modify_certificates::ModifyCertificatesInput).
25 pub fn builder() -> crate::operation::modify_certificates::builders::ModifyCertificatesInputBuilder {
26 crate::operation::modify_certificates::builders::ModifyCertificatesInputBuilder::default()
27 }
28}
29
30/// A builder for [`ModifyCertificatesInput`](crate::operation::modify_certificates::ModifyCertificatesInput).
31#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
32#[non_exhaustive]
33pub struct ModifyCertificatesInputBuilder {
34 pub(crate) certificate_identifier: ::std::option::Option<::std::string::String>,
35 pub(crate) remove_customer_override: ::std::option::Option<bool>,
36}
37impl ModifyCertificatesInputBuilder {
38 /// <p>The new default certificate identifier to override the current one with.</p>
39 /// <p>To determine the valid values, use the <code>describe-certificates</code> CLI command or the <code>DescribeCertificates</code> API operation.</p>
40 pub fn certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
41 self.certificate_identifier = ::std::option::Option::Some(input.into());
42 self
43 }
44 /// <p>The new default certificate identifier to override the current one with.</p>
45 /// <p>To determine the valid values, use the <code>describe-certificates</code> CLI command or the <code>DescribeCertificates</code> API operation.</p>
46 pub fn set_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
47 self.certificate_identifier = input;
48 self
49 }
50 /// <p>The new default certificate identifier to override the current one with.</p>
51 /// <p>To determine the valid values, use the <code>describe-certificates</code> CLI command or the <code>DescribeCertificates</code> API operation.</p>
52 pub fn get_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
53 &self.certificate_identifier
54 }
55 /// <p>Specifies whether to remove the override for the default certificate. If the override is removed, the default certificate is the system default.</p>
56 pub fn remove_customer_override(mut self, input: bool) -> Self {
57 self.remove_customer_override = ::std::option::Option::Some(input);
58 self
59 }
60 /// <p>Specifies whether to remove the override for the default certificate. If the override is removed, the default certificate is the system default.</p>
61 pub fn set_remove_customer_override(mut self, input: ::std::option::Option<bool>) -> Self {
62 self.remove_customer_override = input;
63 self
64 }
65 /// <p>Specifies whether to remove the override for the default certificate. If the override is removed, the default certificate is the system default.</p>
66 pub fn get_remove_customer_override(&self) -> &::std::option::Option<bool> {
67 &self.remove_customer_override
68 }
69 /// Consumes the builder and constructs a [`ModifyCertificatesInput`](crate::operation::modify_certificates::ModifyCertificatesInput).
70 pub fn build(
71 self,
72 ) -> ::std::result::Result<crate::operation::modify_certificates::ModifyCertificatesInput, ::aws_smithy_types::error::operation::BuildError> {
73 ::std::result::Result::Ok(crate::operation::modify_certificates::ModifyCertificatesInput {
74 certificate_identifier: self.certificate_identifier,
75 remove_customer_override: self.remove_customer_override,
76 })
77 }
78}