Class SearchComponents.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.SearchComponents.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SearchComponents>
- Enclosing interface:
SearchComponents
@Stability(Stable)
public static final class SearchComponents.Builder
extends Object
implements software.amazon.jsii.Builder<SearchComponents>
A builder for
SearchComponents
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dimensions
(List<String> dimensions) Sets the value ofSearchComponents.getDimensions()
metricName
(String metricName) Sets the value ofSearchComponents.getMetricName()
Sets the value ofSearchComponents.getNamespace()
populateFrom
(String populateFrom) Sets the value ofSearchComponents.getPopulateFrom()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dimensions
Sets the value ofSearchComponents.getDimensions()
- Parameters:
dimensions
- The list of dimensions to be used in the search expression. This parameter is required.- Returns:
this
-
metricName
Sets the value ofSearchComponents.getMetricName()
- Parameters:
metricName
- The metric name to be used in the search expression. This parameter is required.- Returns:
this
-
namespace
Sets the value ofSearchComponents.getNamespace()
- Parameters:
namespace
- The namespace to be used in the search expression. This parameter is required.- Returns:
this
-
populateFrom
Sets the value ofSearchComponents.getPopulateFrom()
- Parameters:
populateFrom
- The dimension name, that the search expression retrieves, whose values will be used to populate the values to choose from. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SearchComponents>
- Returns:
- a new instance of
SearchComponents
- Throws:
NullPointerException
- if any required attribute was not provided
-