Class CfnDashboardPropsMixin.WidgetProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudtrail.CfnDashboardPropsMixin.WidgetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboardPropsMixin.WidgetProperty>
- Enclosing interface:
CfnDashboardPropsMixin.WidgetProperty
@Stability(Stable)
public static final class CfnDashboardPropsMixin.WidgetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboardPropsMixin.WidgetProperty>
A builder for
CfnDashboardPropsMixin.WidgetProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.queryParameters(List<String> queryParameters) Sets the value ofCfnDashboardPropsMixin.WidgetProperty.getQueryParameters()queryStatement(String queryStatement) Sets the value ofCfnDashboardPropsMixin.WidgetProperty.getQueryStatement()viewProperties(Map<String, String> viewProperties) Sets the value ofCfnDashboardPropsMixin.WidgetProperty.getViewProperties()viewProperties(IResolvable viewProperties) Sets the value ofCfnDashboardPropsMixin.WidgetProperty.getViewProperties()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
queryParameters
@Stability(Stable) public CfnDashboardPropsMixin.WidgetProperty.Builder queryParameters(List<String> queryParameters) Sets the value ofCfnDashboardPropsMixin.WidgetProperty.getQueryParameters()- Parameters:
queryParameters- The optional query parameters. The following query parameters are valid:$StartTime$,$EndTime$, and$Period$.- Returns:
this
-
queryStatement
@Stability(Stable) public CfnDashboardPropsMixin.WidgetProperty.Builder queryStatement(String queryStatement) Sets the value ofCfnDashboardPropsMixin.WidgetProperty.getQueryStatement()- Parameters:
queryStatement- The query statement for the widget. For custom dashboard widgets, you can query across multiple event data stores as long as all event data stores exist in your account.When a query uses
?witheventTime,?must be surrounded by single quotes as follows:'?'.- Returns:
this
-
viewProperties
@Stability(Stable) public CfnDashboardPropsMixin.WidgetProperty.Builder viewProperties(Map<String, String> viewProperties) Sets the value ofCfnDashboardPropsMixin.WidgetProperty.getViewProperties()- Parameters:
viewProperties- The view properties for the widget. For more information about view properties, see View properties for widgets in the AWS CloudTrail User Guide .- Returns:
this
-
viewProperties
@Stability(Stable) public CfnDashboardPropsMixin.WidgetProperty.Builder viewProperties(IResolvable viewProperties) Sets the value ofCfnDashboardPropsMixin.WidgetProperty.getViewProperties()- Parameters:
viewProperties- The view properties for the widget. For more information about view properties, see View properties for widgets in the AWS CloudTrail User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDashboardPropsMixin.WidgetProperty>- Returns:
- a new instance of
CfnDashboardPropsMixin.WidgetProperty - Throws:
NullPointerException- if any required attribute was not provided
-