Class LoggingMetricMetricDescriptorLabels.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.logging_metric.LoggingMetricMetricDescriptorLabels.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LoggingMetricMetricDescriptorLabels>
- Enclosing interface:
- LoggingMetricMetricDescriptorLabels
@Stability(Stable) public static final class LoggingMetricMetricDescriptorLabels.Builder extends Object implements software.amazon.jsii.Builder<LoggingMetricMetricDescriptorLabels>
A builder forLoggingMetricMetricDescriptorLabels
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoggingMetricMetricDescriptorLabelsbuild()Builds the configured instance.LoggingMetricMetricDescriptorLabels.Builderdescription(String description)Sets the value ofLoggingMetricMetricDescriptorLabels.getDescription()LoggingMetricMetricDescriptorLabels.Builderkey(String key)Sets the value ofLoggingMetricMetricDescriptorLabels.getKey()LoggingMetricMetricDescriptorLabels.BuildervalueType(String valueType)Sets the value ofLoggingMetricMetricDescriptorLabels.getValueType()
-
-
-
Method Detail
-
key
@Stability(Stable) public LoggingMetricMetricDescriptorLabels.Builder key(String key)
Sets the value ofLoggingMetricMetricDescriptorLabels.getKey()- Parameters:
key- The label key. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_metric#key LoggingMetric#key}- Returns:
this
-
description
@Stability(Stable) public LoggingMetricMetricDescriptorLabels.Builder description(String description)
Sets the value ofLoggingMetricMetricDescriptorLabels.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/logging_metric#description LoggingMetric#description}- Returns:
this
-
valueType
@Stability(Stable) public LoggingMetricMetricDescriptorLabels.Builder valueType(String valueType)
Sets the value ofLoggingMetricMetricDescriptorLabels.getValueType()- Parameters:
valueType- The type of data that can be assigned to the label. Default value: "STRING" Possible values: ["BOOL", "INT64", "STRING"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_metric#value_type LoggingMetric#value_type}- Returns:
this
-
build
@Stability(Stable) public LoggingMetricMetricDescriptorLabels build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LoggingMetricMetricDescriptorLabels>- Returns:
- a new instance of
LoggingMetricMetricDescriptorLabels - Throws:
NullPointerException- if any required attribute was not provided
-
-