Struct aws_sdk_appmesh::model::client_policy_tls::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ClientPolicyTls
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 build(self) -> ClientPolicyTls
pub fn build(self) -> ClientPolicyTls
Consumes the builder and constructs a ClientPolicyTls
.