pub struct Builder { /* private fields */ }
Expand description
A builder for VirtualGatewayClientPolicyTls
.
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: VirtualGatewayClientTlsCertificate) -> Self
pub fn certificate(self, input: VirtualGatewayClientTlsCertificate) -> Self
A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS) certificate.
sourcepub fn set_certificate(
self,
input: Option<VirtualGatewayClientTlsCertificate>
) -> Self
pub fn set_certificate(
self,
input: Option<VirtualGatewayClientTlsCertificate>
) -> Self
A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS) certificate.
sourcepub fn validation(self, input: VirtualGatewayTlsValidationContext) -> Self
pub fn validation(self, input: VirtualGatewayTlsValidationContext) -> Self
A reference to an object that represents a Transport Layer Security (TLS) validation context.
sourcepub fn set_validation(
self,
input: Option<VirtualGatewayTlsValidationContext>
) -> Self
pub fn set_validation(
self,
input: Option<VirtualGatewayTlsValidationContext>
) -> Self
A reference to an object that represents a Transport Layer Security (TLS) validation context.
sourcepub fn build(self) -> VirtualGatewayClientPolicyTls
pub fn build(self) -> VirtualGatewayClientPolicyTls
Consumes the builder and constructs a VirtualGatewayClientPolicyTls
.