Struct aws_sdk_iot::types::builders::CertificateBuilder
source · #[non_exhaustive]pub struct CertificateBuilder { /* private fields */ }Expand description
A builder for Certificate.
Implementations§
source§impl CertificateBuilder
impl CertificateBuilder
sourcepub fn certificate_arn(self, input: impl Into<String>) -> Self
pub fn certificate_arn(self, input: impl Into<String>) -> Self
The ARN of the certificate.
sourcepub fn set_certificate_arn(self, input: Option<String>) -> Self
pub fn set_certificate_arn(self, input: Option<String>) -> Self
The ARN of the certificate.
sourcepub fn get_certificate_arn(&self) -> &Option<String>
pub fn get_certificate_arn(&self) -> &Option<String>
The ARN of the certificate.
sourcepub fn certificate_id(self, input: impl Into<String>) -> Self
pub fn certificate_id(self, input: impl Into<String>) -> Self
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
sourcepub fn set_certificate_id(self, input: Option<String>) -> Self
pub fn set_certificate_id(self, input: Option<String>) -> Self
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
sourcepub fn get_certificate_id(&self) -> &Option<String>
pub fn get_certificate_id(&self) -> &Option<String>
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
sourcepub fn status(self, input: CertificateStatus) -> Self
pub fn status(self, input: CertificateStatus) -> Self
The status of the certificate.
The status value REGISTER_INACTIVE is deprecated and should not be used.
sourcepub fn set_status(self, input: Option<CertificateStatus>) -> Self
pub fn set_status(self, input: Option<CertificateStatus>) -> Self
The status of the certificate.
The status value REGISTER_INACTIVE is deprecated and should not be used.
sourcepub fn get_status(&self) -> &Option<CertificateStatus>
pub fn get_status(&self) -> &Option<CertificateStatus>
The status of the certificate.
The status value REGISTER_INACTIVE is deprecated and should not be used.
sourcepub fn certificate_mode(self, input: CertificateMode) -> Self
pub fn certificate_mode(self, input: CertificateMode) -> Self
The mode of the certificate.
DEFAULT: A certificate in DEFAULT mode is either generated by Amazon Web Services IoT Core or registered with an issuer certificate authority (CA) in DEFAULT mode. Devices with certificates in DEFAULT mode aren't required to send the Server Name Indication (SNI) extension when connecting to Amazon Web Services IoT Core. However, to use features such as custom domains and VPC endpoints, we recommend that you use the SNI extension when connecting to Amazon Web Services IoT Core.
SNI_ONLY: A certificate in SNI_ONLY mode is registered without an issuer CA. Devices with certificates in SNI_ONLY mode must send the SNI extension when connecting to Amazon Web Services IoT Core.
sourcepub fn set_certificate_mode(self, input: Option<CertificateMode>) -> Self
pub fn set_certificate_mode(self, input: Option<CertificateMode>) -> Self
The mode of the certificate.
DEFAULT: A certificate in DEFAULT mode is either generated by Amazon Web Services IoT Core or registered with an issuer certificate authority (CA) in DEFAULT mode. Devices with certificates in DEFAULT mode aren't required to send the Server Name Indication (SNI) extension when connecting to Amazon Web Services IoT Core. However, to use features such as custom domains and VPC endpoints, we recommend that you use the SNI extension when connecting to Amazon Web Services IoT Core.
SNI_ONLY: A certificate in SNI_ONLY mode is registered without an issuer CA. Devices with certificates in SNI_ONLY mode must send the SNI extension when connecting to Amazon Web Services IoT Core.
sourcepub fn get_certificate_mode(&self) -> &Option<CertificateMode>
pub fn get_certificate_mode(&self) -> &Option<CertificateMode>
The mode of the certificate.
DEFAULT: A certificate in DEFAULT mode is either generated by Amazon Web Services IoT Core or registered with an issuer certificate authority (CA) in DEFAULT mode. Devices with certificates in DEFAULT mode aren't required to send the Server Name Indication (SNI) extension when connecting to Amazon Web Services IoT Core. However, to use features such as custom domains and VPC endpoints, we recommend that you use the SNI extension when connecting to Amazon Web Services IoT Core.
SNI_ONLY: A certificate in SNI_ONLY mode is registered without an issuer CA. Devices with certificates in SNI_ONLY mode must send the SNI extension when connecting to Amazon Web Services IoT Core.
sourcepub fn creation_date(self, input: DateTime) -> Self
pub fn creation_date(self, input: DateTime) -> Self
The date and time the certificate was created.
sourcepub fn set_creation_date(self, input: Option<DateTime>) -> Self
pub fn set_creation_date(self, input: Option<DateTime>) -> Self
The date and time the certificate was created.
sourcepub fn get_creation_date(&self) -> &Option<DateTime>
pub fn get_creation_date(&self) -> &Option<DateTime>
The date and time the certificate was created.
sourcepub fn build(self) -> Certificate
pub fn build(self) -> Certificate
Consumes the builder and constructs a Certificate.
Trait Implementations§
source§impl Clone for CertificateBuilder
impl Clone for CertificateBuilder
source§fn clone(&self) -> CertificateBuilder
fn clone(&self) -> CertificateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CertificateBuilder
impl Debug for CertificateBuilder
source§impl Default for CertificateBuilder
impl Default for CertificateBuilder
source§fn default() -> CertificateBuilder
fn default() -> CertificateBuilder
source§impl PartialEq<CertificateBuilder> for CertificateBuilder
impl PartialEq<CertificateBuilder> for CertificateBuilder
source§fn eq(&self, other: &CertificateBuilder) -> bool
fn eq(&self, other: &CertificateBuilder) -> bool
self and other values to be equal, and is used
by ==.