Struct aws_sdk_appmesh::types::builders::ClientPolicyTlsBuilder
source · #[non_exhaustive]pub struct ClientPolicyTlsBuilder { /* private fields */ }
Expand description
A builder for ClientPolicyTls
.
Implementations§
source§impl ClientPolicyTlsBuilder
impl ClientPolicyTlsBuilder
sourcepub fn enforce(self, input: bool) -> Self
pub fn enforce(self, input: bool) -> Self
Whether the policy is enforced. The default is True
, if a value isn't specified.
sourcepub fn set_enforce(self, input: Option<bool>) -> Self
pub fn set_enforce(self, input: Option<bool>) -> Self
Whether the policy is enforced. The default is True
, if a value isn't specified.
sourcepub fn get_enforce(&self) -> &Option<bool>
pub fn get_enforce(&self) -> &Option<bool>
Whether the policy is enforced. The default is True
, if a value isn't specified.
sourcepub fn ports(self, input: i32) -> Self
pub fn ports(self, input: i32) -> Self
Appends an item to ports
.
To override the contents of this collection use set_ports
.
One or more ports that the policy is enforced for.
sourcepub fn set_ports(self, input: Option<Vec<i32>>) -> Self
pub fn set_ports(self, input: Option<Vec<i32>>) -> Self
One or more ports that the policy is enforced for.
sourcepub fn get_ports(&self) -> &Option<Vec<i32>>
pub fn get_ports(&self) -> &Option<Vec<i32>>
One or more ports that the policy is enforced for.
sourcepub fn certificate(self, input: ClientTlsCertificate) -> Self
pub fn certificate(self, input: ClientTlsCertificate) -> Self
A reference to an object that represents a client's TLS certificate.
sourcepub fn set_certificate(self, input: Option<ClientTlsCertificate>) -> Self
pub fn set_certificate(self, input: Option<ClientTlsCertificate>) -> Self
A reference to an object that represents a client's TLS certificate.
sourcepub fn get_certificate(&self) -> &Option<ClientTlsCertificate>
pub fn get_certificate(&self) -> &Option<ClientTlsCertificate>
A reference to an object that represents a client's TLS certificate.
sourcepub fn validation(self, input: TlsValidationContext) -> Self
pub fn validation(self, input: TlsValidationContext) -> Self
A reference to an object that represents a TLS validation context.
This field is required.sourcepub fn set_validation(self, input: Option<TlsValidationContext>) -> Self
pub fn set_validation(self, input: Option<TlsValidationContext>) -> Self
A reference to an object that represents a TLS validation context.
sourcepub fn get_validation(&self) -> &Option<TlsValidationContext>
pub fn get_validation(&self) -> &Option<TlsValidationContext>
A reference to an object that represents a TLS validation context.
sourcepub fn build(self) -> ClientPolicyTls
pub fn build(self) -> ClientPolicyTls
Consumes the builder and constructs a ClientPolicyTls
.
Trait Implementations§
source§impl Clone for ClientPolicyTlsBuilder
impl Clone for ClientPolicyTlsBuilder
source§fn clone(&self) -> ClientPolicyTlsBuilder
fn clone(&self) -> ClientPolicyTlsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClientPolicyTlsBuilder
impl Debug for ClientPolicyTlsBuilder
source§impl Default for ClientPolicyTlsBuilder
impl Default for ClientPolicyTlsBuilder
source§fn default() -> ClientPolicyTlsBuilder
fn default() -> ClientPolicyTlsBuilder
source§impl PartialEq for ClientPolicyTlsBuilder
impl PartialEq for ClientPolicyTlsBuilder
source§fn eq(&self, other: &ClientPolicyTlsBuilder) -> bool
fn eq(&self, other: &ClientPolicyTlsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ClientPolicyTlsBuilder
Auto Trait Implementations§
impl Freeze for ClientPolicyTlsBuilder
impl RefUnwindSafe for ClientPolicyTlsBuilder
impl Send for ClientPolicyTlsBuilder
impl Sync for ClientPolicyTlsBuilder
impl Unpin for ClientPolicyTlsBuilder
impl UnwindSafe for ClientPolicyTlsBuilder
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