#[non_exhaustive]pub struct VirtualGatewayListenerTlsBuilder { /* private fields */ }
Expand description
A builder for VirtualGatewayListenerTls
.
Implementations§
source§impl VirtualGatewayListenerTlsBuilder
impl VirtualGatewayListenerTlsBuilder
sourcepub fn mode(self, input: VirtualGatewayListenerTlsMode) -> Self
pub fn mode(self, input: VirtualGatewayListenerTlsMode) -> Self
Specify one of the following modes.
-
STRICT – Listener only accepts connections with TLS enabled.
-
PERMISSIVE – Listener accepts connections with or without TLS enabled.
-
DISABLED – Listener only accepts connections without TLS.
sourcepub fn set_mode(self, input: Option<VirtualGatewayListenerTlsMode>) -> Self
pub fn set_mode(self, input: Option<VirtualGatewayListenerTlsMode>) -> Self
Specify one of the following modes.
-
STRICT – Listener only accepts connections with TLS enabled.
-
PERMISSIVE – Listener accepts connections with or without TLS enabled.
-
DISABLED – Listener only accepts connections without TLS.
sourcepub fn get_mode(&self) -> &Option<VirtualGatewayListenerTlsMode>
pub fn get_mode(&self) -> &Option<VirtualGatewayListenerTlsMode>
Specify one of the following modes.
-
STRICT – Listener only accepts connections with TLS enabled.
-
PERMISSIVE – Listener accepts connections with or without TLS enabled.
-
DISABLED – Listener only accepts connections without TLS.
sourcepub fn validation(
self,
input: VirtualGatewayListenerTlsValidationContext
) -> Self
pub fn validation( self, input: VirtualGatewayListenerTlsValidationContext ) -> Self
A reference to an object that represents a virtual gateway's listener's Transport Layer Security (TLS) validation context.
sourcepub fn set_validation(
self,
input: Option<VirtualGatewayListenerTlsValidationContext>
) -> Self
pub fn set_validation( self, input: Option<VirtualGatewayListenerTlsValidationContext> ) -> Self
A reference to an object that represents a virtual gateway's listener's Transport Layer Security (TLS) validation context.
sourcepub fn get_validation(
&self
) -> &Option<VirtualGatewayListenerTlsValidationContext>
pub fn get_validation( &self ) -> &Option<VirtualGatewayListenerTlsValidationContext>
A reference to an object that represents a virtual gateway's listener's Transport Layer Security (TLS) validation context.
sourcepub fn certificate(self, input: VirtualGatewayListenerTlsCertificate) -> Self
pub fn certificate(self, input: VirtualGatewayListenerTlsCertificate) -> Self
An object that represents a Transport Layer Security (TLS) certificate.
This field is required.sourcepub fn set_certificate(
self,
input: Option<VirtualGatewayListenerTlsCertificate>
) -> Self
pub fn set_certificate( self, input: Option<VirtualGatewayListenerTlsCertificate> ) -> Self
An object that represents a Transport Layer Security (TLS) certificate.
sourcepub fn get_certificate(&self) -> &Option<VirtualGatewayListenerTlsCertificate>
pub fn get_certificate(&self) -> &Option<VirtualGatewayListenerTlsCertificate>
An object that represents a Transport Layer Security (TLS) certificate.
sourcepub fn build(self) -> Result<VirtualGatewayListenerTls, BuildError>
pub fn build(self) -> Result<VirtualGatewayListenerTls, BuildError>
Consumes the builder and constructs a VirtualGatewayListenerTls
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for VirtualGatewayListenerTlsBuilder
impl Clone for VirtualGatewayListenerTlsBuilder
source§fn clone(&self) -> VirtualGatewayListenerTlsBuilder
fn clone(&self) -> VirtualGatewayListenerTlsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for VirtualGatewayListenerTlsBuilder
impl Default for VirtualGatewayListenerTlsBuilder
source§fn default() -> VirtualGatewayListenerTlsBuilder
fn default() -> VirtualGatewayListenerTlsBuilder
source§impl PartialEq for VirtualGatewayListenerTlsBuilder
impl PartialEq for VirtualGatewayListenerTlsBuilder
source§fn eq(&self, other: &VirtualGatewayListenerTlsBuilder) -> bool
fn eq(&self, other: &VirtualGatewayListenerTlsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VirtualGatewayListenerTlsBuilder
Auto Trait Implementations§
impl Freeze for VirtualGatewayListenerTlsBuilder
impl RefUnwindSafe for VirtualGatewayListenerTlsBuilder
impl Send for VirtualGatewayListenerTlsBuilder
impl Sync for VirtualGatewayListenerTlsBuilder
impl Unpin for VirtualGatewayListenerTlsBuilder
impl UnwindSafe for VirtualGatewayListenerTlsBuilder
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