Class CfnWorkspacePropsMixin.WorkspaceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.aps.CfnWorkspacePropsMixin.WorkspaceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkspacePropsMixin.WorkspaceConfigurationProperty>
- Enclosing interface:
CfnWorkspacePropsMixin.WorkspaceConfigurationProperty
@Stability(Stable)
public static final class CfnWorkspacePropsMixin.WorkspaceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkspacePropsMixin.WorkspaceConfigurationProperty>
A builder for
CfnWorkspacePropsMixin.WorkspaceConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.limitsPerLabelSets(List<? extends Object> limitsPerLabelSets) limitsPerLabelSets(IResolvable limitsPerLabelSets) outOfOrderTimeWindowInSeconds(Number outOfOrderTimeWindowInSeconds) retentionPeriodInDays(Number retentionPeriodInDays) ruleQueryOffsetInSeconds(Number ruleQueryOffsetInSeconds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
limitsPerLabelSets
@Stability(Stable) public CfnWorkspacePropsMixin.WorkspaceConfigurationProperty.Builder limitsPerLabelSets(IResolvable limitsPerLabelSets) - Parameters:
limitsPerLabelSets- This is an array of structures, where each structure defines a label set for the workspace, and defines the ingestion limit for active time series for each of those label sets. Each label name in a label set must be unique.- Returns:
this
-
limitsPerLabelSets
@Stability(Stable) public CfnWorkspacePropsMixin.WorkspaceConfigurationProperty.Builder limitsPerLabelSets(List<? extends Object> limitsPerLabelSets) - Parameters:
limitsPerLabelSets- This is an array of structures, where each structure defines a label set for the workspace, and defines the ingestion limit for active time series for each of those label sets. Each label name in a label set must be unique.- Returns:
this
-
outOfOrderTimeWindowInSeconds
@Stability(Stable) public CfnWorkspacePropsMixin.WorkspaceConfigurationProperty.Builder outOfOrderTimeWindowInSeconds(Number outOfOrderTimeWindowInSeconds) Sets the value ofCfnWorkspacePropsMixin.WorkspaceConfigurationProperty.getOutOfOrderTimeWindowInSeconds()- Parameters:
outOfOrderTimeWindowInSeconds- The time window in seconds for accepting out-of-order samples.- Returns:
this
-
retentionPeriodInDays
@Stability(Stable) public CfnWorkspacePropsMixin.WorkspaceConfigurationProperty.Builder retentionPeriodInDays(Number retentionPeriodInDays) - Parameters:
retentionPeriodInDays- Specifies how many days that metrics will be retained in the workspace.- Returns:
this
-
ruleQueryOffsetInSeconds
@Stability(Stable) public CfnWorkspacePropsMixin.WorkspaceConfigurationProperty.Builder ruleQueryOffsetInSeconds(Number ruleQueryOffsetInSeconds) Sets the value ofCfnWorkspacePropsMixin.WorkspaceConfigurationProperty.getRuleQueryOffsetInSeconds()- Parameters:
ruleQueryOffsetInSeconds- Duration in seconds to offset rule evaluation queries into the past.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkspacePropsMixin.WorkspaceConfigurationProperty>- Returns:
- a new instance of
CfnWorkspacePropsMixin.WorkspaceConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-