Class MonitoringMetricDescriptorLabels.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.monitoring_metric_descriptor.MonitoringMetricDescriptorLabels.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MonitoringMetricDescriptorLabels>
- Enclosing interface:
- MonitoringMetricDescriptorLabels
@Stability(Stable) public static final class MonitoringMetricDescriptorLabels.Builder extends Object implements software.amazon.jsii.Builder<MonitoringMetricDescriptorLabels>
A builder forMonitoringMetricDescriptorLabels
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MonitoringMetricDescriptorLabelsbuild()Builds the configured instance.MonitoringMetricDescriptorLabels.Builderdescription(String description)Sets the value ofMonitoringMetricDescriptorLabels.getDescription()MonitoringMetricDescriptorLabels.Builderkey(String key)Sets the value ofMonitoringMetricDescriptorLabels.getKey()MonitoringMetricDescriptorLabels.BuildervalueType(String valueType)Sets the value ofMonitoringMetricDescriptorLabels.getValueType()
-
-
-
Method Detail
-
key
@Stability(Stable) public MonitoringMetricDescriptorLabels.Builder key(String key)
Sets the value ofMonitoringMetricDescriptorLabels.getKey()- Parameters:
key- The key for this label. This parameter is required. The key must not exceed 100 characters. The first character of the key must be an upper- or lower-case letter, the remaining characters must be letters, digits or underscores, and the key must match the regular expression [a-zA-Z][a-zA-Z0-9_]* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_metric_descriptor#key MonitoringMetricDescriptor#key}- Returns:
this
-
description
@Stability(Stable) public MonitoringMetricDescriptorLabels.Builder description(String description)
Sets the value ofMonitoringMetricDescriptorLabels.getDescription()- Parameters:
description- A human-readable description for the label. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_metric_descriptor#description MonitoringMetricDescriptor#description}- Returns:
this
-
valueType
@Stability(Stable) public MonitoringMetricDescriptorLabels.Builder valueType(String valueType)
Sets the value ofMonitoringMetricDescriptorLabels.getValueType()- Parameters:
valueType- The type of data that can be assigned to the label. Default value: "STRING" Possible values: ["STRING", "BOOL", "INT64"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_metric_descriptor#value_type MonitoringMetricDescriptor#value_type}- Returns:
this
-
build
@Stability(Stable) public MonitoringMetricDescriptorLabels build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MonitoringMetricDescriptorLabels>- Returns:
- a new instance of
MonitoringMetricDescriptorLabels - Throws:
NullPointerException- if any required attribute was not provided
-
-