#[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 ==
.