Class CfnRealtimeLogConfigMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnRealtimeLogConfigMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRealtimeLogConfigMixinProps>
- Enclosing interface:
CfnRealtimeLogConfigMixinProps
@Stability(Stable)
public static final class CfnRealtimeLogConfigMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRealtimeLogConfigMixinProps>
A builder for
CfnRealtimeLogConfigMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRealtimeLogConfigMixinProps.getEndPoints()endPoints(IResolvable endPoints) Sets the value ofCfnRealtimeLogConfigMixinProps.getEndPoints()Sets the value ofCfnRealtimeLogConfigMixinProps.getFields()Sets the value ofCfnRealtimeLogConfigMixinProps.getName()samplingRate(Number samplingRate) Sets the value ofCfnRealtimeLogConfigMixinProps.getSamplingRate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endPoints
Sets the value ofCfnRealtimeLogConfigMixinProps.getEndPoints()- Parameters:
endPoints- Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.- Returns:
this
-
endPoints
@Stability(Stable) public CfnRealtimeLogConfigMixinProps.Builder endPoints(List<? extends Object> endPoints) Sets the value ofCfnRealtimeLogConfigMixinProps.getEndPoints()- Parameters:
endPoints- Contains information about the Amazon Kinesis data stream where you are sending real-time log data for this real-time log configuration.- Returns:
this
-
fields
Sets the value ofCfnRealtimeLogConfigMixinProps.getFields()- Parameters:
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 .
- Returns:
this
-
name
Sets the value ofCfnRealtimeLogConfigMixinProps.getName()- Parameters:
name- The unique name of this real-time log configuration.- Returns:
this
-
samplingRate
Sets the value ofCfnRealtimeLogConfigMixinProps.getSamplingRate()- Parameters:
samplingRate- 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRealtimeLogConfigMixinProps>- Returns:
- a new instance of
CfnRealtimeLogConfigMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-