Struct aws_sdk_iot::operation::register_ca_certificate::builders::RegisterCaCertificateInputBuilder
source · #[non_exhaustive]pub struct RegisterCaCertificateInputBuilder { /* private fields */ }
Expand description
A builder for RegisterCaCertificateInput
.
Implementations§
source§impl RegisterCaCertificateInputBuilder
impl RegisterCaCertificateInputBuilder
sourcepub fn ca_certificate(self, input: impl Into<String>) -> Self
pub fn ca_certificate(self, input: impl Into<String>) -> Self
The CA certificate.
This field is required.sourcepub fn set_ca_certificate(self, input: Option<String>) -> Self
pub fn set_ca_certificate(self, input: Option<String>) -> Self
The CA certificate.
sourcepub fn get_ca_certificate(&self) -> &Option<String>
pub fn get_ca_certificate(&self) -> &Option<String>
The CA certificate.
sourcepub fn verification_certificate(self, input: impl Into<String>) -> Self
pub fn verification_certificate(self, input: impl Into<String>) -> Self
The private key verification certificate. If certificateMode
is SNI_ONLY
, the verificationCertificate
field must be empty. If certificateMode
is DEFAULT
or not provided, the verificationCertificate
field must not be empty.
sourcepub fn set_verification_certificate(self, input: Option<String>) -> Self
pub fn set_verification_certificate(self, input: Option<String>) -> Self
The private key verification certificate. If certificateMode
is SNI_ONLY
, the verificationCertificate
field must be empty. If certificateMode
is DEFAULT
or not provided, the verificationCertificate
field must not be empty.
sourcepub fn get_verification_certificate(&self) -> &Option<String>
pub fn get_verification_certificate(&self) -> &Option<String>
The private key verification certificate. If certificateMode
is SNI_ONLY
, the verificationCertificate
field must be empty. If certificateMode
is DEFAULT
or not provided, the verificationCertificate
field must not be empty.
sourcepub fn set_as_active(self, input: bool) -> Self
pub fn set_as_active(self, input: bool) -> Self
A boolean value that specifies if the CA certificate is set to active.
Valid values: ACTIVE | INACTIVE
sourcepub fn set_set_as_active(self, input: Option<bool>) -> Self
pub fn set_set_as_active(self, input: Option<bool>) -> Self
A boolean value that specifies if the CA certificate is set to active.
Valid values: ACTIVE | INACTIVE
sourcepub fn get_set_as_active(&self) -> &Option<bool>
pub fn get_set_as_active(&self) -> &Option<bool>
A boolean value that specifies if the CA certificate is set to active.
Valid values: ACTIVE | INACTIVE
sourcepub fn allow_auto_registration(self, input: bool) -> Self
pub fn allow_auto_registration(self, input: bool) -> Self
Allows this CA certificate to be used for auto registration of device certificates.
sourcepub fn set_allow_auto_registration(self, input: Option<bool>) -> Self
pub fn set_allow_auto_registration(self, input: Option<bool>) -> Self
Allows this CA certificate to be used for auto registration of device certificates.
sourcepub fn get_allow_auto_registration(&self) -> &Option<bool>
pub fn get_allow_auto_registration(&self) -> &Option<bool>
Allows this CA certificate to be used for auto registration of device certificates.
sourcepub fn registration_config(self, input: RegistrationConfig) -> Self
pub fn registration_config(self, input: RegistrationConfig) -> Self
Information about the registration configuration.
sourcepub fn set_registration_config(self, input: Option<RegistrationConfig>) -> Self
pub fn set_registration_config(self, input: Option<RegistrationConfig>) -> Self
Information about the registration configuration.
sourcepub fn get_registration_config(&self) -> &Option<RegistrationConfig>
pub fn get_registration_config(&self) -> &Option<RegistrationConfig>
Information about the registration configuration.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
Metadata which can be used to manage the CA certificate.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
Metadata which can be used to manage the CA certificate.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
Metadata which can be used to manage the CA certificate.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
sourcepub fn certificate_mode(self, input: CertificateMode) -> Self
pub fn certificate_mode(self, input: CertificateMode) -> Self
Describes the certificate mode in which the Certificate Authority (CA) will be registered. If the verificationCertificate
field is not provided, set certificateMode
to be SNI_ONLY
. If the verificationCertificate
field is provided, set certificateMode
to be DEFAULT
. When certificateMode
is not provided, it defaults to DEFAULT
. All the device certificates that are registered using this CA will be registered in the same certificate mode as the CA. For more information about certificate mode for device certificates, see certificate mode.
sourcepub fn set_certificate_mode(self, input: Option<CertificateMode>) -> Self
pub fn set_certificate_mode(self, input: Option<CertificateMode>) -> Self
Describes the certificate mode in which the Certificate Authority (CA) will be registered. If the verificationCertificate
field is not provided, set certificateMode
to be SNI_ONLY
. If the verificationCertificate
field is provided, set certificateMode
to be DEFAULT
. When certificateMode
is not provided, it defaults to DEFAULT
. All the device certificates that are registered using this CA will be registered in the same certificate mode as the CA. For more information about certificate mode for device certificates, see certificate mode.
sourcepub fn get_certificate_mode(&self) -> &Option<CertificateMode>
pub fn get_certificate_mode(&self) -> &Option<CertificateMode>
Describes the certificate mode in which the Certificate Authority (CA) will be registered. If the verificationCertificate
field is not provided, set certificateMode
to be SNI_ONLY
. If the verificationCertificate
field is provided, set certificateMode
to be DEFAULT
. When certificateMode
is not provided, it defaults to DEFAULT
. All the device certificates that are registered using this CA will be registered in the same certificate mode as the CA. For more information about certificate mode for device certificates, see certificate mode.
sourcepub fn build(self) -> Result<RegisterCaCertificateInput, BuildError>
pub fn build(self) -> Result<RegisterCaCertificateInput, BuildError>
Consumes the builder and constructs a RegisterCaCertificateInput
.
source§impl RegisterCaCertificateInputBuilder
impl RegisterCaCertificateInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<RegisterCaCertificateOutput, SdkError<RegisterCACertificateError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<RegisterCaCertificateOutput, SdkError<RegisterCACertificateError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for RegisterCaCertificateInputBuilder
impl Clone for RegisterCaCertificateInputBuilder
source§fn clone(&self) -> RegisterCaCertificateInputBuilder
fn clone(&self) -> RegisterCaCertificateInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RegisterCaCertificateInputBuilder
impl Default for RegisterCaCertificateInputBuilder
source§fn default() -> RegisterCaCertificateInputBuilder
fn default() -> RegisterCaCertificateInputBuilder
source§impl PartialEq for RegisterCaCertificateInputBuilder
impl PartialEq for RegisterCaCertificateInputBuilder
source§fn eq(&self, other: &RegisterCaCertificateInputBuilder) -> bool
fn eq(&self, other: &RegisterCaCertificateInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RegisterCaCertificateInputBuilder
Auto Trait Implementations§
impl Freeze for RegisterCaCertificateInputBuilder
impl RefUnwindSafe for RegisterCaCertificateInputBuilder
impl Send for RegisterCaCertificateInputBuilder
impl Sync for RegisterCaCertificateInputBuilder
impl Unpin for RegisterCaCertificateInputBuilder
impl UnwindSafe for RegisterCaCertificateInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more