Struct aws_sdk_transfer::types::builders::ListedCertificateBuilder
source · #[non_exhaustive]pub struct ListedCertificateBuilder { /* private fields */ }
Expand description
A builder for ListedCertificate
.
Implementations§
source§impl ListedCertificateBuilder
impl ListedCertificateBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the specified certificate.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the specified certificate.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the specified certificate.
sourcepub fn certificate_id(self, input: impl Into<String>) -> Self
pub fn certificate_id(self, input: impl Into<String>) -> Self
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
sourcepub fn set_certificate_id(self, input: Option<String>) -> Self
pub fn set_certificate_id(self, input: Option<String>) -> Self
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
sourcepub fn get_certificate_id(&self) -> &Option<String>
pub fn get_certificate_id(&self) -> &Option<String>
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
sourcepub fn usage(self, input: CertificateUsageType) -> Self
pub fn usage(self, input: CertificateUsageType) -> Self
Specifies how this certificate is used. It can be used in the following ways:
-
SIGNING
: For signing AS2 messages -
ENCRYPTION
: For encrypting AS2 messages -
TLS
: For securing AS2 communications sent over HTTPS
sourcepub fn set_usage(self, input: Option<CertificateUsageType>) -> Self
pub fn set_usage(self, input: Option<CertificateUsageType>) -> Self
Specifies how this certificate is used. It can be used in the following ways:
-
SIGNING
: For signing AS2 messages -
ENCRYPTION
: For encrypting AS2 messages -
TLS
: For securing AS2 communications sent over HTTPS
sourcepub fn get_usage(&self) -> &Option<CertificateUsageType>
pub fn get_usage(&self) -> &Option<CertificateUsageType>
Specifies how this certificate is used. It can be used in the following ways:
-
SIGNING
: For signing AS2 messages -
ENCRYPTION
: For encrypting AS2 messages -
TLS
: For securing AS2 communications sent over HTTPS
sourcepub fn status(self, input: CertificateStatusType) -> Self
pub fn status(self, input: CertificateStatusType) -> Self
The certificate can be either ACTIVE
, PENDING_ROTATION
, or INACTIVE
. PENDING_ROTATION
means that this certificate will replace the current certificate when it expires.
sourcepub fn set_status(self, input: Option<CertificateStatusType>) -> Self
pub fn set_status(self, input: Option<CertificateStatusType>) -> Self
The certificate can be either ACTIVE
, PENDING_ROTATION
, or INACTIVE
. PENDING_ROTATION
means that this certificate will replace the current certificate when it expires.
sourcepub fn get_status(&self) -> &Option<CertificateStatusType>
pub fn get_status(&self) -> &Option<CertificateStatusType>
The certificate can be either ACTIVE
, PENDING_ROTATION
, or INACTIVE
. PENDING_ROTATION
means that this certificate will replace the current certificate when it expires.
sourcepub fn active_date(self, input: DateTime) -> Self
pub fn active_date(self, input: DateTime) -> Self
An optional date that specifies when the certificate becomes active.
sourcepub fn set_active_date(self, input: Option<DateTime>) -> Self
pub fn set_active_date(self, input: Option<DateTime>) -> Self
An optional date that specifies when the certificate becomes active.
sourcepub fn get_active_date(&self) -> &Option<DateTime>
pub fn get_active_date(&self) -> &Option<DateTime>
An optional date that specifies when the certificate becomes active.
sourcepub fn inactive_date(self, input: DateTime) -> Self
pub fn inactive_date(self, input: DateTime) -> Self
An optional date that specifies when the certificate becomes inactive.
sourcepub fn set_inactive_date(self, input: Option<DateTime>) -> Self
pub fn set_inactive_date(self, input: Option<DateTime>) -> Self
An optional date that specifies when the certificate becomes inactive.
sourcepub fn get_inactive_date(&self) -> &Option<DateTime>
pub fn get_inactive_date(&self) -> &Option<DateTime>
An optional date that specifies when the certificate becomes inactive.
sourcepub fn type(self, input: CertificateType) -> Self
pub fn type(self, input: CertificateType) -> Self
The type for the certificate. If a private key has been specified for the certificate, its type is CERTIFICATE_WITH_PRIVATE_KEY
. If there is no private key, the type is CERTIFICATE
.
sourcepub fn set_type(self, input: Option<CertificateType>) -> Self
pub fn set_type(self, input: Option<CertificateType>) -> Self
The type for the certificate. If a private key has been specified for the certificate, its type is CERTIFICATE_WITH_PRIVATE_KEY
. If there is no private key, the type is CERTIFICATE
.
sourcepub fn get_type(&self) -> &Option<CertificateType>
pub fn get_type(&self) -> &Option<CertificateType>
The type for the certificate. If a private key has been specified for the certificate, its type is CERTIFICATE_WITH_PRIVATE_KEY
. If there is no private key, the type is CERTIFICATE
.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The name or short description that's used to identify the certificate.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The name or short description that's used to identify the certificate.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The name or short description that's used to identify the certificate.
sourcepub fn build(self) -> ListedCertificate
pub fn build(self) -> ListedCertificate
Consumes the builder and constructs a ListedCertificate
.
Trait Implementations§
source§impl Clone for ListedCertificateBuilder
impl Clone for ListedCertificateBuilder
source§fn clone(&self) -> ListedCertificateBuilder
fn clone(&self) -> ListedCertificateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListedCertificateBuilder
impl Debug for ListedCertificateBuilder
source§impl Default for ListedCertificateBuilder
impl Default for ListedCertificateBuilder
source§fn default() -> ListedCertificateBuilder
fn default() -> ListedCertificateBuilder
source§impl PartialEq for ListedCertificateBuilder
impl PartialEq for ListedCertificateBuilder
source§fn eq(&self, other: &ListedCertificateBuilder) -> bool
fn eq(&self, other: &ListedCertificateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListedCertificateBuilder
Auto Trait Implementations§
impl Freeze for ListedCertificateBuilder
impl RefUnwindSafe for ListedCertificateBuilder
impl Send for ListedCertificateBuilder
impl Sync for ListedCertificateBuilder
impl Unpin for ListedCertificateBuilder
impl UnwindSafe for ListedCertificateBuilder
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