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

com.pulumi.azurenative.networkcloud.MetricsConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.networkcloud;

import com.pulumi.azurenative.networkcloud.inputs.ExtendedLocationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class MetricsConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final MetricsConfigurationArgs Empty = new MetricsConfigurationArgs();

    /**
     * The name of the cluster.
     * 
     */
    @Import(name="clusterName", required=true)
    private Output clusterName;

    /**
     * @return The name of the cluster.
     * 
     */
    public Output clusterName() {
        return this.clusterName;
    }

    /**
     * The interval in minutes by which metrics will be collected.
     * 
     */
    @Import(name="collectionInterval", required=true)
    private Output collectionInterval;

    /**
     * @return The interval in minutes by which metrics will be collected.
     * 
     */
    public Output collectionInterval() {
        return this.collectionInterval;
    }

    /**
     * The list of metric names that have been chosen to be enabled in addition to the core set of enabled metrics.
     * 
     */
    @Import(name="enabledMetrics")
    private @Nullable Output> enabledMetrics;

    /**
     * @return The list of metric names that have been chosen to be enabled in addition to the core set of enabled metrics.
     * 
     */
    public Optional>> enabledMetrics() {
        return Optional.ofNullable(this.enabledMetrics);
    }

    /**
     * The extended location of the cluster associated with the resource.
     * 
     */
    @Import(name="extendedLocation", required=true)
    private Output extendedLocation;

    /**
     * @return The extended location of the cluster associated with the resource.
     * 
     */
    public Output extendedLocation() {
        return this.extendedLocation;
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name of the metrics configuration for the cluster.
     * 
     */
    @Import(name="metricsConfigurationName")
    private @Nullable Output metricsConfigurationName;

    /**
     * @return The name of the metrics configuration for the cluster.
     * 
     */
    public Optional> metricsConfigurationName() {
        return Optional.ofNullable(this.metricsConfigurationName);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private MetricsConfigurationArgs() {}

    private MetricsConfigurationArgs(MetricsConfigurationArgs $) {
        this.clusterName = $.clusterName;
        this.collectionInterval = $.collectionInterval;
        this.enabledMetrics = $.enabledMetrics;
        this.extendedLocation = $.extendedLocation;
        this.location = $.location;
        this.metricsConfigurationName = $.metricsConfigurationName;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private MetricsConfigurationArgs $;

        public Builder() {
            $ = new MetricsConfigurationArgs();
        }

        public Builder(MetricsConfigurationArgs defaults) {
            $ = new MetricsConfigurationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param clusterName The name of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(Output clusterName) {
            $.clusterName = clusterName;
            return this;
        }

        /**
         * @param clusterName The name of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(String clusterName) {
            return clusterName(Output.of(clusterName));
        }

        /**
         * @param collectionInterval The interval in minutes by which metrics will be collected.
         * 
         * @return builder
         * 
         */
        public Builder collectionInterval(Output collectionInterval) {
            $.collectionInterval = collectionInterval;
            return this;
        }

        /**
         * @param collectionInterval The interval in minutes by which metrics will be collected.
         * 
         * @return builder
         * 
         */
        public Builder collectionInterval(Double collectionInterval) {
            return collectionInterval(Output.of(collectionInterval));
        }

        /**
         * @param enabledMetrics The list of metric names that have been chosen to be enabled in addition to the core set of enabled metrics.
         * 
         * @return builder
         * 
         */
        public Builder enabledMetrics(@Nullable Output> enabledMetrics) {
            $.enabledMetrics = enabledMetrics;
            return this;
        }

        /**
         * @param enabledMetrics The list of metric names that have been chosen to be enabled in addition to the core set of enabled metrics.
         * 
         * @return builder
         * 
         */
        public Builder enabledMetrics(List enabledMetrics) {
            return enabledMetrics(Output.of(enabledMetrics));
        }

        /**
         * @param enabledMetrics The list of metric names that have been chosen to be enabled in addition to the core set of enabled metrics.
         * 
         * @return builder
         * 
         */
        public Builder enabledMetrics(String... enabledMetrics) {
            return enabledMetrics(List.of(enabledMetrics));
        }

        /**
         * @param extendedLocation The extended location of the cluster associated with the resource.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation The extended location of the cluster associated with the resource.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param metricsConfigurationName The name of the metrics configuration for the cluster.
         * 
         * @return builder
         * 
         */
        public Builder metricsConfigurationName(@Nullable Output metricsConfigurationName) {
            $.metricsConfigurationName = metricsConfigurationName;
            return this;
        }

        /**
         * @param metricsConfigurationName The name of the metrics configuration for the cluster.
         * 
         * @return builder
         * 
         */
        public Builder metricsConfigurationName(String metricsConfigurationName) {
            return metricsConfigurationName(Output.of(metricsConfigurationName));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public MetricsConfigurationArgs build() {
            if ($.clusterName == null) {
                throw new MissingRequiredPropertyException("MetricsConfigurationArgs", "clusterName");
            }
            if ($.collectionInterval == null) {
                throw new MissingRequiredPropertyException("MetricsConfigurationArgs", "collectionInterval");
            }
            if ($.extendedLocation == null) {
                throw new MissingRequiredPropertyException("MetricsConfigurationArgs", "extendedLocation");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("MetricsConfigurationArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy