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.
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<ClientPolicyTlsBuilder> for ClientPolicyTlsBuilder
impl PartialEq<ClientPolicyTlsBuilder> 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 ==
.