Class CfnGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.xray.CfnGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGroupProps>
- Enclosing interface:
CfnGroupProps
@Stability(Stable)
public static final class CfnGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGroupProps>
A builder for
CfnGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.filterExpression
(String filterExpression) Sets the value ofCfnGroupProps.getFilterExpression()
Sets the value ofCfnGroupProps.getGroupName()
insightsConfiguration
(IResolvable insightsConfiguration) Sets the value ofCfnGroupProps.getInsightsConfiguration()
insightsConfiguration
(CfnGroup.InsightsConfigurationProperty insightsConfiguration) Sets the value ofCfnGroupProps.getInsightsConfiguration()
Sets the value ofCfnGroupProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
groupName
Sets the value ofCfnGroupProps.getGroupName()
- Parameters:
groupName
- The unique case-sensitive name of the group. This parameter is required.- Returns:
this
-
filterExpression
Sets the value ofCfnGroupProps.getFilterExpression()
- Parameters:
filterExpression
- The filter expression defining the parameters to include traces.- Returns:
this
-
insightsConfiguration
@Stability(Stable) public CfnGroupProps.Builder insightsConfiguration(CfnGroup.InsightsConfigurationProperty insightsConfiguration) Sets the value ofCfnGroupProps.getInsightsConfiguration()
- Parameters:
insightsConfiguration
- The structure containing configurations related to insights.- The InsightsEnabled boolean can be set to true to enable insights for the group or false to disable insights for the group.
- The NotificationsEnabled boolean can be set to true to enable insights notifications through Amazon EventBridge for the group.
- Returns:
this
-
insightsConfiguration
@Stability(Stable) public CfnGroupProps.Builder insightsConfiguration(IResolvable insightsConfiguration) Sets the value ofCfnGroupProps.getInsightsConfiguration()
- Parameters:
insightsConfiguration
- The structure containing configurations related to insights.- The InsightsEnabled boolean can be set to true to enable insights for the group or false to disable insights for the group.
- The NotificationsEnabled boolean can be set to true to enable insights notifications through Amazon EventBridge for the group.
- Returns:
this
-
tags
Sets the value ofCfnGroupProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGroupProps>
- Returns:
- a new instance of
CfnGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-