Struct aws_sdk_iot::operation::register_certificate::builders::RegisterCertificateFluentBuilder
source · pub struct RegisterCertificateFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to RegisterCertificate
.
Registers a device certificate with IoT in the same certificate mode as the signing CA. If you have more than one CA certificate that has the same subject field, you must specify the CA certificate that was used to sign the device certificate being registered.
Requires permission to access the RegisterCertificate action.
Implementations§
source§impl RegisterCertificateFluentBuilder
impl RegisterCertificateFluentBuilder
sourcepub fn as_input(&self) -> &RegisterCertificateInputBuilder
pub fn as_input(&self) -> &RegisterCertificateInputBuilder
Access the RegisterCertificate as a reference.
sourcepub async fn send(
self
) -> Result<RegisterCertificateOutput, SdkError<RegisterCertificateError, HttpResponse>>
pub async fn send( self ) -> Result<RegisterCertificateOutput, SdkError<RegisterCertificateError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<RegisterCertificateOutput, RegisterCertificateError, Self>
pub fn customize( self ) -> CustomizableOperation<RegisterCertificateOutput, RegisterCertificateError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn certificate_pem(self, input: impl Into<String>) -> Self
pub fn certificate_pem(self, input: impl Into<String>) -> Self
The certificate data, in PEM format.
sourcepub fn set_certificate_pem(self, input: Option<String>) -> Self
pub fn set_certificate_pem(self, input: Option<String>) -> Self
The certificate data, in PEM format.
sourcepub fn get_certificate_pem(&self) -> &Option<String>
pub fn get_certificate_pem(&self) -> &Option<String>
The certificate data, in PEM format.
sourcepub fn ca_certificate_pem(self, input: impl Into<String>) -> Self
pub fn ca_certificate_pem(self, input: impl Into<String>) -> Self
The CA certificate used to sign the device certificate being registered.
sourcepub fn set_ca_certificate_pem(self, input: Option<String>) -> Self
pub fn set_ca_certificate_pem(self, input: Option<String>) -> Self
The CA certificate used to sign the device certificate being registered.
sourcepub fn get_ca_certificate_pem(&self) -> &Option<String>
pub fn get_ca_certificate_pem(&self) -> &Option<String>
The CA certificate used to sign the device certificate being registered.
sourcepub fn set_as_active(self, input: bool) -> Self
👎Deprecated
pub fn set_as_active(self, input: bool) -> Self
A boolean value that specifies if the certificate is set to active.
Valid values: ACTIVE | INACTIVE
sourcepub fn set_set_as_active(self, input: Option<bool>) -> Self
👎Deprecated
pub fn set_set_as_active(self, input: Option<bool>) -> Self
A boolean value that specifies if the certificate is set to active.
Valid values: ACTIVE | INACTIVE
sourcepub fn get_set_as_active(&self) -> &Option<bool>
👎Deprecated
pub fn get_set_as_active(&self) -> &Option<bool>
A boolean value that specifies if the certificate is set to active.
Valid values: ACTIVE | INACTIVE
sourcepub fn status(self, input: CertificateStatus) -> Self
pub fn status(self, input: CertificateStatus) -> Self
The status of the register certificate request. Valid values that you can use include ACTIVE
, INACTIVE
, and REVOKED
.
sourcepub fn set_status(self, input: Option<CertificateStatus>) -> Self
pub fn set_status(self, input: Option<CertificateStatus>) -> Self
The status of the register certificate request. Valid values that you can use include ACTIVE
, INACTIVE
, and REVOKED
.
sourcepub fn get_status(&self) -> &Option<CertificateStatus>
pub fn get_status(&self) -> &Option<CertificateStatus>
The status of the register certificate request. Valid values that you can use include ACTIVE
, INACTIVE
, and REVOKED
.
Trait Implementations§
source§impl Clone for RegisterCertificateFluentBuilder
impl Clone for RegisterCertificateFluentBuilder
source§fn clone(&self) -> RegisterCertificateFluentBuilder
fn clone(&self) -> RegisterCertificateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more