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

com.pulumi.azurenative.iotoperationsmq.DiagnosticServiceArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.iotoperationsmq;

import com.pulumi.azurenative.iotoperationsmq.inputs.ContainerImageArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.ExtendedLocationPropertyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DiagnosticServiceArgs Empty = new DiagnosticServiceArgs();

    /**
     * The frequency at which the data will be exported.
     * 
     */
    @Import(name="dataExportFrequencySeconds")
    private @Nullable Output dataExportFrequencySeconds;

    /**
     * @return The frequency at which the data will be exported.
     * 
     */
    public Optional> dataExportFrequencySeconds() {
        return Optional.ofNullable(this.dataExportFrequencySeconds);
    }

    /**
     * Name of MQ diagnostic resource
     * 
     */
    @Import(name="diagnosticServiceName")
    private @Nullable Output diagnosticServiceName;

    /**
     * @return Name of MQ diagnostic resource
     * 
     */
    public Optional> diagnosticServiceName() {
        return Optional.ofNullable(this.diagnosticServiceName);
    }

    /**
     * Extended Location
     * 
     */
    @Import(name="extendedLocation", required=true)
    private Output extendedLocation;

    /**
     * @return Extended Location
     * 
     */
    public Output extendedLocation() {
        return this.extendedLocation;
    }

    /**
     * The details of Diagnostic Service Docker Image.
     * 
     */
    @Import(name="image", required=true)
    private Output image;

    /**
     * @return The details of Diagnostic Service Docker Image.
     * 
     */
    public Output image() {
        return this.image;
    }

    /**
     * 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 format for the logs generated.
     * 
     */
    @Import(name="logFormat")
    private @Nullable Output logFormat;

    /**
     * @return The format for the logs generated.
     * 
     */
    public Optional> logFormat() {
        return Optional.ofNullable(this.logFormat);
    }

    /**
     * The format for the logs generated.
     * 
     */
    @Import(name="logLevel")
    private @Nullable Output logLevel;

    /**
     * @return The format for the logs generated.
     * 
     */
    public Optional> logLevel() {
        return Optional.ofNullable(this.logLevel);
    }

    /**
     * The maximum data stored in MiB.
     * 
     */
    @Import(name="maxDataStorageSize")
    private @Nullable Output maxDataStorageSize;

    /**
     * @return The maximum data stored in MiB.
     * 
     */
    public Optional> maxDataStorageSize() {
        return Optional.ofNullable(this.maxDataStorageSize);
    }

    /**
     * The port at which metrics is exposed.
     * 
     */
    @Import(name="metricsPort")
    private @Nullable Output metricsPort;

    /**
     * @return The port at which metrics is exposed.
     * 
     */
    public Optional> metricsPort() {
        return Optional.ofNullable(this.metricsPort);
    }

    /**
     * Name of MQ resource
     * 
     */
    @Import(name="mqName", required=true)
    private Output mqName;

    /**
     * @return Name of MQ resource
     * 
     */
    public Output mqName() {
        return this.mqName;
    }

    /**
     * The destination to collect traces. Diagnostic service will push traces to this endpoint
     * 
     */
    @Import(name="openTelemetryTracesCollectorAddr")
    private @Nullable Output openTelemetryTracesCollectorAddr;

    /**
     * @return The destination to collect traces. Diagnostic service will push traces to this endpoint
     * 
     */
    public Optional> openTelemetryTracesCollectorAddr() {
        return Optional.ofNullable(this.openTelemetryTracesCollectorAddr);
    }

    /**
     * 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;
    }

    /**
     * Metric inactivity timeout.
     * 
     */
    @Import(name="staleDataTimeoutSeconds")
    private @Nullable Output staleDataTimeoutSeconds;

    /**
     * @return Metric inactivity timeout.
     * 
     */
    public Optional> staleDataTimeoutSeconds() {
        return Optional.ofNullable(this.staleDataTimeoutSeconds);
    }

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

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

    private DiagnosticServiceArgs() {}

    private DiagnosticServiceArgs(DiagnosticServiceArgs $) {
        this.dataExportFrequencySeconds = $.dataExportFrequencySeconds;
        this.diagnosticServiceName = $.diagnosticServiceName;
        this.extendedLocation = $.extendedLocation;
        this.image = $.image;
        this.location = $.location;
        this.logFormat = $.logFormat;
        this.logLevel = $.logLevel;
        this.maxDataStorageSize = $.maxDataStorageSize;
        this.metricsPort = $.metricsPort;
        this.mqName = $.mqName;
        this.openTelemetryTracesCollectorAddr = $.openTelemetryTracesCollectorAddr;
        this.resourceGroupName = $.resourceGroupName;
        this.staleDataTimeoutSeconds = $.staleDataTimeoutSeconds;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private DiagnosticServiceArgs $;

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

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

        /**
         * @param dataExportFrequencySeconds The frequency at which the data will be exported.
         * 
         * @return builder
         * 
         */
        public Builder dataExportFrequencySeconds(@Nullable Output dataExportFrequencySeconds) {
            $.dataExportFrequencySeconds = dataExportFrequencySeconds;
            return this;
        }

        /**
         * @param dataExportFrequencySeconds The frequency at which the data will be exported.
         * 
         * @return builder
         * 
         */
        public Builder dataExportFrequencySeconds(Integer dataExportFrequencySeconds) {
            return dataExportFrequencySeconds(Output.of(dataExportFrequencySeconds));
        }

        /**
         * @param diagnosticServiceName Name of MQ diagnostic resource
         * 
         * @return builder
         * 
         */
        public Builder diagnosticServiceName(@Nullable Output diagnosticServiceName) {
            $.diagnosticServiceName = diagnosticServiceName;
            return this;
        }

        /**
         * @param diagnosticServiceName Name of MQ diagnostic resource
         * 
         * @return builder
         * 
         */
        public Builder diagnosticServiceName(String diagnosticServiceName) {
            return diagnosticServiceName(Output.of(diagnosticServiceName));
        }

        /**
         * @param extendedLocation Extended Location
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation Extended Location
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationPropertyArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @param image The details of Diagnostic Service Docker Image.
         * 
         * @return builder
         * 
         */
        public Builder image(Output image) {
            $.image = image;
            return this;
        }

        /**
         * @param image The details of Diagnostic Service Docker Image.
         * 
         * @return builder
         * 
         */
        public Builder image(ContainerImageArgs image) {
            return image(Output.of(image));
        }

        /**
         * @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 logFormat The format for the logs generated.
         * 
         * @return builder
         * 
         */
        public Builder logFormat(@Nullable Output logFormat) {
            $.logFormat = logFormat;
            return this;
        }

        /**
         * @param logFormat The format for the logs generated.
         * 
         * @return builder
         * 
         */
        public Builder logFormat(String logFormat) {
            return logFormat(Output.of(logFormat));
        }

        /**
         * @param logLevel The format for the logs generated.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(@Nullable Output logLevel) {
            $.logLevel = logLevel;
            return this;
        }

        /**
         * @param logLevel The format for the logs generated.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(String logLevel) {
            return logLevel(Output.of(logLevel));
        }

        /**
         * @param maxDataStorageSize The maximum data stored in MiB.
         * 
         * @return builder
         * 
         */
        public Builder maxDataStorageSize(@Nullable Output maxDataStorageSize) {
            $.maxDataStorageSize = maxDataStorageSize;
            return this;
        }

        /**
         * @param maxDataStorageSize The maximum data stored in MiB.
         * 
         * @return builder
         * 
         */
        public Builder maxDataStorageSize(Double maxDataStorageSize) {
            return maxDataStorageSize(Output.of(maxDataStorageSize));
        }

        /**
         * @param metricsPort The port at which metrics is exposed.
         * 
         * @return builder
         * 
         */
        public Builder metricsPort(@Nullable Output metricsPort) {
            $.metricsPort = metricsPort;
            return this;
        }

        /**
         * @param metricsPort The port at which metrics is exposed.
         * 
         * @return builder
         * 
         */
        public Builder metricsPort(Integer metricsPort) {
            return metricsPort(Output.of(metricsPort));
        }

        /**
         * @param mqName Name of MQ resource
         * 
         * @return builder
         * 
         */
        public Builder mqName(Output mqName) {
            $.mqName = mqName;
            return this;
        }

        /**
         * @param mqName Name of MQ resource
         * 
         * @return builder
         * 
         */
        public Builder mqName(String mqName) {
            return mqName(Output.of(mqName));
        }

        /**
         * @param openTelemetryTracesCollectorAddr The destination to collect traces. Diagnostic service will push traces to this endpoint
         * 
         * @return builder
         * 
         */
        public Builder openTelemetryTracesCollectorAddr(@Nullable Output openTelemetryTracesCollectorAddr) {
            $.openTelemetryTracesCollectorAddr = openTelemetryTracesCollectorAddr;
            return this;
        }

        /**
         * @param openTelemetryTracesCollectorAddr The destination to collect traces. Diagnostic service will push traces to this endpoint
         * 
         * @return builder
         * 
         */
        public Builder openTelemetryTracesCollectorAddr(String openTelemetryTracesCollectorAddr) {
            return openTelemetryTracesCollectorAddr(Output.of(openTelemetryTracesCollectorAddr));
        }

        /**
         * @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 staleDataTimeoutSeconds Metric inactivity timeout.
         * 
         * @return builder
         * 
         */
        public Builder staleDataTimeoutSeconds(@Nullable Output staleDataTimeoutSeconds) {
            $.staleDataTimeoutSeconds = staleDataTimeoutSeconds;
            return this;
        }

        /**
         * @param staleDataTimeoutSeconds Metric inactivity timeout.
         * 
         * @return builder
         * 
         */
        public Builder staleDataTimeoutSeconds(Integer staleDataTimeoutSeconds) {
            return staleDataTimeoutSeconds(Output.of(staleDataTimeoutSeconds));
        }

        /**
         * @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 DiagnosticServiceArgs build() {
            $.dataExportFrequencySeconds = Codegen.integerProp("dataExportFrequencySeconds").output().arg($.dataExportFrequencySeconds).def(10).getNullable();
            if ($.extendedLocation == null) {
                throw new MissingRequiredPropertyException("DiagnosticServiceArgs", "extendedLocation");
            }
            if ($.image == null) {
                throw new MissingRequiredPropertyException("DiagnosticServiceArgs", "image");
            }
            $.logFormat = Codegen.stringProp("logFormat").output().arg($.logFormat).def("json").getNullable();
            $.logLevel = Codegen.stringProp("logLevel").output().arg($.logLevel).def("info").getNullable();
            $.maxDataStorageSize = Codegen.doubleProp("maxDataStorageSize").output().arg($.maxDataStorageSize).def(1.6e+01).getNullable();
            $.metricsPort = Codegen.integerProp("metricsPort").output().arg($.metricsPort).def(9600).getNullable();
            if ($.mqName == null) {
                throw new MissingRequiredPropertyException("DiagnosticServiceArgs", "mqName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("DiagnosticServiceArgs", "resourceGroupName");
            }
            $.staleDataTimeoutSeconds = Codegen.integerProp("staleDataTimeoutSeconds").output().arg($.staleDataTimeoutSeconds).def(600).getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy