#[non_exhaustive]pub struct RealtimeLogConfigBuilder { /* private fields */ }
Expand description
A builder for RealtimeLogConfig
.
Implementations§
source§impl RealtimeLogConfigBuilder
impl RealtimeLogConfigBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of this real-time log configuration.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of this real-time log configuration.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of this real-time log configuration.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The unique name of this real-time log configuration.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The unique name of this real-time log configuration.
sourcepub fn sampling_rate(self, input: i64) -> Self
pub fn sampling_rate(self, input: i64) -> Self
The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, inclusive.
This field is required.sourcepub fn set_sampling_rate(self, input: Option<i64>) -> Self
pub fn set_sampling_rate(self, input: Option<i64>) -> Self
The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, inclusive.
sourcepub fn get_sampling_rate(&self) -> &Option<i64>
pub fn get_sampling_rate(&self) -> &Option<i64>
The sampling rate for this real-time log configuration. The sampling rate determines the percentage of viewer requests that are represented in the real-time log data. The sampling rate is an integer between 1 and 100, inclusive.
sourcepub fn end_points(self, input: EndPoint) -> Self
pub fn end_points(self, input: EndPoint) -> Self
Appends an item to end_points
.
To override the contents of this collection use set_end_points
.
Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
sourcepub fn set_end_points(self, input: Option<Vec<EndPoint>>) -> Self
pub fn set_end_points(self, input: Option<Vec<EndPoint>>) -> Self
Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
sourcepub fn get_end_points(&self) -> &Option<Vec<EndPoint>>
pub fn get_end_points(&self) -> &Option<Vec<EndPoint>>
Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.
sourcepub fn fields(self, input: impl Into<String>) -> Self
pub fn fields(self, input: impl Into<String>) -> Self
Appends an item to fields
.
To override the contents of this collection use set_fields
.
A list of fields that are included in each real-time log record. In an API response, the fields are provided in the same order in which they are sent to the Amazon Kinesis data stream.
For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
sourcepub fn set_fields(self, input: Option<Vec<String>>) -> Self
pub fn set_fields(self, input: Option<Vec<String>>) -> Self
A list of fields that are included in each real-time log record. In an API response, the fields are provided in the same order in which they are sent to the Amazon Kinesis data stream.
For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
sourcepub fn get_fields(&self) -> &Option<Vec<String>>
pub fn get_fields(&self) -> &Option<Vec<String>>
A list of fields that are included in each real-time log record. In an API response, the fields are provided in the same order in which they are sent to the Amazon Kinesis data stream.
For more information about fields, see Real-time log configuration fields in the Amazon CloudFront Developer Guide.
sourcepub fn build(self) -> Result<RealtimeLogConfig, BuildError>
pub fn build(self) -> Result<RealtimeLogConfig, BuildError>
Consumes the builder and constructs a RealtimeLogConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RealtimeLogConfigBuilder
impl Clone for RealtimeLogConfigBuilder
source§fn clone(&self) -> RealtimeLogConfigBuilder
fn clone(&self) -> RealtimeLogConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RealtimeLogConfigBuilder
impl Debug for RealtimeLogConfigBuilder
source§impl Default for RealtimeLogConfigBuilder
impl Default for RealtimeLogConfigBuilder
source§fn default() -> RealtimeLogConfigBuilder
fn default() -> RealtimeLogConfigBuilder
source§impl PartialEq for RealtimeLogConfigBuilder
impl PartialEq for RealtimeLogConfigBuilder
source§fn eq(&self, other: &RealtimeLogConfigBuilder) -> bool
fn eq(&self, other: &RealtimeLogConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RealtimeLogConfigBuilder
Auto Trait Implementations§
impl Freeze for RealtimeLogConfigBuilder
impl RefUnwindSafe for RealtimeLogConfigBuilder
impl Send for RealtimeLogConfigBuilder
impl Sync for RealtimeLogConfigBuilder
impl Unpin for RealtimeLogConfigBuilder
impl UnwindSafe for RealtimeLogConfigBuilder
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