public static final class CfnRealtimeLogConfigProps.Builder
extends java.lang.Object
CfnRealtimeLogConfigProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnRealtimeLogConfigProps |
build()
Builds the configured instance.
|
CfnRealtimeLogConfigProps.Builder |
endPoints(IResolvable endPoints)
Sets the value of
CfnRealtimeLogConfigProps.getEndPoints() |
CfnRealtimeLogConfigProps.Builder |
endPoints(java.util.List<? extends java.lang.Object> endPoints)
Sets the value of
CfnRealtimeLogConfigProps.getEndPoints() |
CfnRealtimeLogConfigProps.Builder |
fields(java.util.List<java.lang.String> fields)
Sets the value of
CfnRealtimeLogConfigProps.getFields() |
CfnRealtimeLogConfigProps.Builder |
name(java.lang.String name)
Sets the value of
CfnRealtimeLogConfigProps.getName() |
CfnRealtimeLogConfigProps.Builder |
samplingRate(java.lang.Number samplingRate)
Sets the value of
CfnRealtimeLogConfigProps.getSamplingRate() |
public CfnRealtimeLogConfigProps.Builder endPoints(IResolvable endPoints)
CfnRealtimeLogConfigProps.getEndPoints()
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.this
public CfnRealtimeLogConfigProps.Builder endPoints(java.util.List<? extends java.lang.Object> endPoints)
CfnRealtimeLogConfigProps.getEndPoints()
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.this
public CfnRealtimeLogConfigProps.Builder fields(java.util.List<java.lang.String> fields)
CfnRealtimeLogConfigProps.getFields()
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 .
this
public CfnRealtimeLogConfigProps.Builder name(java.lang.String name)
CfnRealtimeLogConfigProps.getName()
name
- The unique name of this real-time log configuration. This parameter is required.this
public CfnRealtimeLogConfigProps.Builder samplingRate(java.lang.Number samplingRate)
CfnRealtimeLogConfigProps.getSamplingRate()
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.this
public CfnRealtimeLogConfigProps build()
CfnRealtimeLogConfigProps
java.lang.NullPointerException
- if any required attribute was not provided