Class CfnTrail.AdvancedEventSelectorProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudtrail.CfnTrail.AdvancedEventSelectorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrail.AdvancedEventSelectorProperty>
- Enclosing interface:
CfnTrail.AdvancedEventSelectorProperty
@Stability(Stable)
public static final class CfnTrail.AdvancedEventSelectorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrail.AdvancedEventSelectorProperty>
A builder for
CfnTrail.AdvancedEventSelectorProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.fieldSelectors
(List<? extends Object> fieldSelectors) Sets the value ofCfnTrail.AdvancedEventSelectorProperty.getFieldSelectors()
fieldSelectors
(IResolvable fieldSelectors) Sets the value ofCfnTrail.AdvancedEventSelectorProperty.getFieldSelectors()
Sets the value ofCfnTrail.AdvancedEventSelectorProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fieldSelectors
@Stability(Stable) public CfnTrail.AdvancedEventSelectorProperty.Builder fieldSelectors(IResolvable fieldSelectors) Sets the value ofCfnTrail.AdvancedEventSelectorProperty.getFieldSelectors()
- Parameters:
fieldSelectors
- Contains all selector statements in an advanced event selector. This parameter is required.- Returns:
this
-
fieldSelectors
@Stability(Stable) public CfnTrail.AdvancedEventSelectorProperty.Builder fieldSelectors(List<? extends Object> fieldSelectors) Sets the value ofCfnTrail.AdvancedEventSelectorProperty.getFieldSelectors()
- Parameters:
fieldSelectors
- Contains all selector statements in an advanced event selector. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnTrail.AdvancedEventSelectorProperty.getName()
- Parameters:
name
- An optional, descriptive name for an advanced event selector, such as "Log data events for only two S3 buckets".- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTrail.AdvancedEventSelectorProperty>
- Returns:
- a new instance of
CfnTrail.AdvancedEventSelectorProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-