Class CfnRealtimeLogConfigProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.CfnRealtimeLogConfigProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRealtimeLogConfigProps>
- Enclosing interface:
CfnRealtimeLogConfigProps
@Stability(Stable)
public static final class CfnRealtimeLogConfigProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRealtimeLogConfigProps>
A builder for
CfnRealtimeLogConfigProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnRealtimeLogConfigProps.getEndPoints()
endPoints
(IResolvable endPoints) Sets the value ofCfnRealtimeLogConfigProps.getEndPoints()
Sets the value ofCfnRealtimeLogConfigProps.getFields()
Sets the value ofCfnRealtimeLogConfigProps.getName()
samplingRate
(Number samplingRate) Sets the value ofCfnRealtimeLogConfigProps.getSamplingRate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endPoints
Sets the value ofCfnRealtimeLogConfigProps.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. This parameter is required.- Returns:
this
-
endPoints
@Stability(Stable) public CfnRealtimeLogConfigProps.Builder endPoints(List<? extends Object> endPoints) Sets the value ofCfnRealtimeLogConfigProps.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. This parameter is required.- Returns:
this
-
fields
Sets the value ofCfnRealtimeLogConfigProps.getFields()
- Parameters:
fields
- A list of fields that are included in each real-time log record. This parameter is required. 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 ofCfnRealtimeLogConfigProps.getName()
- Parameters:
name
- The unique name of this real-time log configuration. This parameter is required.- Returns:
this
-
samplingRate
Sets the value ofCfnRealtimeLogConfigProps.getSamplingRate()
- Parameters:
samplingRate
- The sampling rate for this real-time log configuration. This parameter is required. 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnRealtimeLogConfigProps>
- Returns:
- a new instance of
CfnRealtimeLogConfigProps
- Throws:
NullPointerException
- if any required attribute was not provided
-