Class CfnTrail.AggregationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudtrail.CfnTrail.AggregationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrail.AggregationConfigurationProperty>
- Enclosing interface:
CfnTrail.AggregationConfigurationProperty
@Stability(Stable)
public static final class CfnTrail.AggregationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrail.AggregationConfigurationProperty>
A builder for
CfnTrail.AggregationConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventCategory(String eventCategory) Sets the value ofCfnTrail.AggregationConfigurationProperty.getEventCategory()Sets the value ofCfnTrail.AggregationConfigurationProperty.getTemplates()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventCategory
@Stability(Stable) public CfnTrail.AggregationConfigurationProperty.Builder eventCategory(String eventCategory) Sets the value ofCfnTrail.AggregationConfigurationProperty.getEventCategory()- Parameters:
eventCategory- Specifies the event category for which aggregation should be performed. This parameter is required.- Returns:
this
-
templates
@Stability(Stable) public CfnTrail.AggregationConfigurationProperty.Builder templates(List<String> templates) Sets the value ofCfnTrail.AggregationConfigurationProperty.getTemplates()- Parameters:
templates- A list of aggregation templates that can be used to configure event aggregation. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrail.AggregationConfigurationProperty>- Returns:
- a new instance of
CfnTrail.AggregationConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-