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
// 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 ModifyCertificatesInput {
/// <p>The new default certificate identifier to override the current one with.</p>
/// <p>To determine the valid values, use the <code>describe-certificates</code> CLI command or the <code>DescribeCertificates</code> API operation.</p>
pub certificate_identifier: ::std::option::Option<::std::string::String>,
/// <p>Specifies whether to remove the override for the default certificate. If the override is removed, the default certificate is the system default.</p>
pub remove_customer_override: ::std::option::Option<bool>,
}
impl ModifyCertificatesInput {
/// <p>The new default certificate identifier to override the current one with.</p>
/// <p>To determine the valid values, use the <code>describe-certificates</code> CLI command or the <code>DescribeCertificates</code> API operation.</p>
pub fn certificate_identifier(&self) -> ::std::option::Option<&str> {
self.certificate_identifier.as_deref()
}
/// <p>Specifies whether to remove the override for the default certificate. If the override is removed, the default certificate is the system default.</p>
pub fn remove_customer_override(&self) -> ::std::option::Option<bool> {
self.remove_customer_override
}
}
impl ModifyCertificatesInput {
/// Creates a new builder-style object to manufacture [`ModifyCertificatesInput`](crate::operation::modify_certificates::ModifyCertificatesInput).
pub fn builder() -> crate::operation::modify_certificates::builders::ModifyCertificatesInputBuilder {
crate::operation::modify_certificates::builders::ModifyCertificatesInputBuilder::default()
}
}
/// A builder for [`ModifyCertificatesInput`](crate::operation::modify_certificates::ModifyCertificatesInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ModifyCertificatesInputBuilder {
pub(crate) certificate_identifier: ::std::option::Option<::std::string::String>,
pub(crate) remove_customer_override: ::std::option::Option<bool>,
}
impl ModifyCertificatesInputBuilder {
/// <p>The new default certificate identifier to override the current one with.</p>
/// <p>To determine the valid values, use the <code>describe-certificates</code> CLI command or the <code>DescribeCertificates</code> API operation.</p>
pub fn certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.certificate_identifier = ::std::option::Option::Some(input.into());
self
}
/// <p>The new default certificate identifier to override the current one with.</p>
/// <p>To determine the valid values, use the <code>describe-certificates</code> CLI command or the <code>DescribeCertificates</code> API operation.</p>
pub fn set_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.certificate_identifier = input;
self
}
/// <p>The new default certificate identifier to override the current one with.</p>
/// <p>To determine the valid values, use the <code>describe-certificates</code> CLI command or the <code>DescribeCertificates</code> API operation.</p>
pub fn get_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.certificate_identifier
}
/// <p>Specifies whether to remove the override for the default certificate. If the override is removed, the default certificate is the system default.</p>
pub fn remove_customer_override(mut self, input: bool) -> Self {
self.remove_customer_override = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether to remove the override for the default certificate. If the override is removed, the default certificate is the system default.</p>
pub fn set_remove_customer_override(mut self, input: ::std::option::Option<bool>) -> Self {
self.remove_customer_override = input;
self
}
/// <p>Specifies whether to remove the override for the default certificate. If the override is removed, the default certificate is the system default.</p>
pub fn get_remove_customer_override(&self) -> &::std::option::Option<bool> {
&self.remove_customer_override
}
/// Consumes the builder and constructs a [`ModifyCertificatesInput`](crate::operation::modify_certificates::ModifyCertificatesInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::modify_certificates::ModifyCertificatesInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::modify_certificates::ModifyCertificatesInput {
certificate_identifier: self.certificate_identifier,
remove_customer_override: self.remove_customer_override,
})
}
}