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