All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.awsconnector.outputs.MetricResponse Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.awsconnector.outputs;

import com.pulumi.azurenative.awsconnector.outputs.DimensionResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class MetricResponse {
    /**
     * @return The metric dimensions that you want to be used for the metric that the alarm will watch.
     * 
     */
    private @Nullable List dimensions;
    /**
     * @return The name of the metric that you want the alarm to watch. This is a required field.
     * 
     */
    private @Nullable String metricName;
    /**
     * @return The namespace of the metric that the alarm will watch.
     * 
     */
    private @Nullable String namespace;

    private MetricResponse() {}
    /**
     * @return The metric dimensions that you want to be used for the metric that the alarm will watch.
     * 
     */
    public List dimensions() {
        return this.dimensions == null ? List.of() : this.dimensions;
    }
    /**
     * @return The name of the metric that you want the alarm to watch. This is a required field.
     * 
     */
    public Optional metricName() {
        return Optional.ofNullable(this.metricName);
    }
    /**
     * @return The namespace of the metric that the alarm will watch.
     * 
     */
    public Optional namespace() {
        return Optional.ofNullable(this.namespace);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(MetricResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List dimensions;
        private @Nullable String metricName;
        private @Nullable String namespace;
        public Builder() {}
        public Builder(MetricResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dimensions = defaults.dimensions;
    	      this.metricName = defaults.metricName;
    	      this.namespace = defaults.namespace;
        }

        @CustomType.Setter
        public Builder dimensions(@Nullable List dimensions) {

            this.dimensions = dimensions;
            return this;
        }
        public Builder dimensions(DimensionResponse... dimensions) {
            return dimensions(List.of(dimensions));
        }
        @CustomType.Setter
        public Builder metricName(@Nullable String metricName) {

            this.metricName = metricName;
            return this;
        }
        @CustomType.Setter
        public Builder namespace(@Nullable String namespace) {

            this.namespace = namespace;
            return this;
        }
        public MetricResponse build() {
            final var _resultValue = new MetricResponse();
            _resultValue.dimensions = dimensions;
            _resultValue.metricName = metricName;
            _resultValue.namespace = namespace;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy