#[non_exhaustive]pub struct VirtualGatewayFileAccessLogBuilder { /* private fields */ }
Expand description
A builder for VirtualGatewayFileAccessLog
.
Implementations§
source§impl VirtualGatewayFileAccessLogBuilder
impl VirtualGatewayFileAccessLogBuilder
sourcepub fn path(self, input: impl Into<String>) -> Self
pub fn path(self, input: impl Into<String>) -> Self
The file path to write access logs to. You can use /dev/stdout
to send access logs to standard out and configure your Envoy container to use a log driver, such as awslogs
, to export the access logs to a log storage service such as Amazon CloudWatch Logs. You can also specify a path in the Envoy container's file system to write the files to disk.
sourcepub fn set_path(self, input: Option<String>) -> Self
pub fn set_path(self, input: Option<String>) -> Self
The file path to write access logs to. You can use /dev/stdout
to send access logs to standard out and configure your Envoy container to use a log driver, such as awslogs
, to export the access logs to a log storage service such as Amazon CloudWatch Logs. You can also specify a path in the Envoy container's file system to write the files to disk.
sourcepub fn get_path(&self) -> &Option<String>
pub fn get_path(&self) -> &Option<String>
The file path to write access logs to. You can use /dev/stdout
to send access logs to standard out and configure your Envoy container to use a log driver, such as awslogs
, to export the access logs to a log storage service such as Amazon CloudWatch Logs. You can also specify a path in the Envoy container's file system to write the files to disk.
sourcepub fn format(self, input: LoggingFormat) -> Self
pub fn format(self, input: LoggingFormat) -> Self
The specified format for the virtual gateway access logs. It can be either json_format
or text_format
.
sourcepub fn set_format(self, input: Option<LoggingFormat>) -> Self
pub fn set_format(self, input: Option<LoggingFormat>) -> Self
The specified format for the virtual gateway access logs. It can be either json_format
or text_format
.
sourcepub fn get_format(&self) -> &Option<LoggingFormat>
pub fn get_format(&self) -> &Option<LoggingFormat>
The specified format for the virtual gateway access logs. It can be either json_format
or text_format
.
sourcepub fn build(self) -> Result<VirtualGatewayFileAccessLog, BuildError>
pub fn build(self) -> Result<VirtualGatewayFileAccessLog, BuildError>
Consumes the builder and constructs a VirtualGatewayFileAccessLog
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for VirtualGatewayFileAccessLogBuilder
impl Clone for VirtualGatewayFileAccessLogBuilder
source§fn clone(&self) -> VirtualGatewayFileAccessLogBuilder
fn clone(&self) -> VirtualGatewayFileAccessLogBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for VirtualGatewayFileAccessLogBuilder
impl Default for VirtualGatewayFileAccessLogBuilder
source§fn default() -> VirtualGatewayFileAccessLogBuilder
fn default() -> VirtualGatewayFileAccessLogBuilder
source§impl PartialEq for VirtualGatewayFileAccessLogBuilder
impl PartialEq for VirtualGatewayFileAccessLogBuilder
source§fn eq(&self, other: &VirtualGatewayFileAccessLogBuilder) -> bool
fn eq(&self, other: &VirtualGatewayFileAccessLogBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VirtualGatewayFileAccessLogBuilder
Auto Trait Implementations§
impl Freeze for VirtualGatewayFileAccessLogBuilder
impl RefUnwindSafe for VirtualGatewayFileAccessLogBuilder
impl Send for VirtualGatewayFileAccessLogBuilder
impl Sync for VirtualGatewayFileAccessLogBuilder
impl Unpin for VirtualGatewayFileAccessLogBuilder
impl UnwindSafe for VirtualGatewayFileAccessLogBuilder
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