#[non_exhaustive]pub struct VirtualGatewayClientPolicyTlsBuilder { /* private fields */ }Expand description
A builder for VirtualGatewayClientPolicyTls.
Implementations§
source§impl VirtualGatewayClientPolicyTlsBuilder
impl VirtualGatewayClientPolicyTlsBuilder
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: 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 get_certificate(&self) -> &Option<VirtualGatewayClientTlsCertificate>
pub fn get_certificate(&self) -> &Option<VirtualGatewayClientTlsCertificate>
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.
This field is required.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 get_validation(&self) -> &Option<VirtualGatewayTlsValidationContext>
pub fn get_validation(&self) -> &Option<VirtualGatewayTlsValidationContext>
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.
Trait Implementations§
source§impl Clone for VirtualGatewayClientPolicyTlsBuilder
impl Clone for VirtualGatewayClientPolicyTlsBuilder
source§fn clone(&self) -> VirtualGatewayClientPolicyTlsBuilder
fn clone(&self) -> VirtualGatewayClientPolicyTlsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for VirtualGatewayClientPolicyTlsBuilder
impl Default for VirtualGatewayClientPolicyTlsBuilder
source§fn default() -> VirtualGatewayClientPolicyTlsBuilder
fn default() -> VirtualGatewayClientPolicyTlsBuilder
source§impl PartialEq for VirtualGatewayClientPolicyTlsBuilder
impl PartialEq for VirtualGatewayClientPolicyTlsBuilder
source§fn eq(&self, other: &VirtualGatewayClientPolicyTlsBuilder) -> bool
fn eq(&self, other: &VirtualGatewayClientPolicyTlsBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VirtualGatewayClientPolicyTlsBuilder
Auto Trait Implementations§
impl Freeze for VirtualGatewayClientPolicyTlsBuilder
impl RefUnwindSafe for VirtualGatewayClientPolicyTlsBuilder
impl Send for VirtualGatewayClientPolicyTlsBuilder
impl Sync for VirtualGatewayClientPolicyTlsBuilder
impl Unpin for VirtualGatewayClientPolicyTlsBuilder
impl UnwindSafe for VirtualGatewayClientPolicyTlsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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