Class LoggingMetricMetricDescriptor.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.logging_metric.LoggingMetricMetricDescriptor.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LoggingMetricMetricDescriptor>
- Enclosing interface:
- LoggingMetricMetricDescriptor
@Stability(Stable) public static final class LoggingMetricMetricDescriptor.Builder extends Object implements software.amazon.jsii.Builder<LoggingMetricMetricDescriptor>
A builder forLoggingMetricMetricDescriptor
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoggingMetricMetricDescriptorbuild()Builds the configured instance.LoggingMetricMetricDescriptor.BuilderdisplayName(String displayName)Sets the value ofLoggingMetricMetricDescriptor.getDisplayName()LoggingMetricMetricDescriptor.Builderlabels(com.hashicorp.cdktf.IResolvable labels)Sets the value ofLoggingMetricMetricDescriptor.getLabels()LoggingMetricMetricDescriptor.Builderlabels(List<? extends LoggingMetricMetricDescriptorLabels> labels)Sets the value ofLoggingMetricMetricDescriptor.getLabels()LoggingMetricMetricDescriptor.BuildermetricKind(String metricKind)Sets the value ofLoggingMetricMetricDescriptor.getMetricKind()LoggingMetricMetricDescriptor.Builderunit(String unit)Sets the value ofLoggingMetricMetricDescriptor.getUnit()LoggingMetricMetricDescriptor.BuildervalueType(String valueType)Sets the value ofLoggingMetricMetricDescriptor.getValueType()
-
-
-
Method Detail
-
metricKind
@Stability(Stable) public LoggingMetricMetricDescriptor.Builder metricKind(String metricKind)
Sets the value ofLoggingMetricMetricDescriptor.getMetricKind()- Parameters:
metricKind- Whether the metric records instantaneous values, changes to a value, etc. This parameter is required. Some combinations of metricKind and valueType might not be supported. For counter metrics, set this to DELTA. Possible values: ["DELTA", "GAUGE", "CUMULATIVE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_metric#metric_kind LoggingMetric#metric_kind}- Returns:
this
-
valueType
@Stability(Stable) public LoggingMetricMetricDescriptor.Builder valueType(String valueType)
Sets the value ofLoggingMetricMetricDescriptor.getValueType()- Parameters:
valueType- Whether the measurement is an integer, a floating-point number, etc. This parameter is required. Some combinations of metricKind and valueType might not be supported. For counter metrics, set this to INT64. Possible values: ["BOOL", "INT64", "DOUBLE", "STRING", "DISTRIBUTION", "MONEY"] 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
-
displayName
@Stability(Stable) public LoggingMetricMetricDescriptor.Builder displayName(String displayName)
Sets the value ofLoggingMetricMetricDescriptor.getDisplayName()- Parameters:
displayName- A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example "Request count". This field is optional but it is recommended to be set for any metrics associated with user-visible concepts, such as Quota. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_metric#display_name LoggingMetric#display_name}- Returns:
this
-
labels
@Stability(Stable) public LoggingMetricMetricDescriptor.Builder labels(com.hashicorp.cdktf.IResolvable labels)
Sets the value ofLoggingMetricMetricDescriptor.getLabels()- Parameters:
labels- labels block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_metric#labels LoggingMetric#labels}- Returns:
this
-
labels
@Stability(Stable) public LoggingMetricMetricDescriptor.Builder labels(List<? extends LoggingMetricMetricDescriptorLabels> labels)
Sets the value ofLoggingMetricMetricDescriptor.getLabels()- Parameters:
labels- labels block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_metric#labels LoggingMetric#labels}- Returns:
this
-
unit
@Stability(Stable) public LoggingMetricMetricDescriptor.Builder unit(String unit)
Sets the value ofLoggingMetricMetricDescriptor.getUnit()- Parameters:
unit- The unit in which the metric value is reported. It is only applicable if the valueType is 'INT64', 'DOUBLE', or 'DISTRIBUTION'. The supported units are a subset of [The Unified Code for Units of Measure](http://unitsofmeasure.org/ucum.html) standard Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/logging_metric#unit LoggingMetric#unit}- Returns:
this
-
build
@Stability(Stable) public LoggingMetricMetricDescriptor build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LoggingMetricMetricDescriptor>- Returns:
- a new instance of
LoggingMetricMetricDescriptor - Throws:
NullPointerException- if any required attribute was not provided
-
-