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

com.pulumi.azurenative.iotoperationsmq.outputs.GetDiagnosticServiceResult 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.outputs;

import com.pulumi.azurenative.iotoperationsmq.outputs.ContainerImageResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.ExtendedLocationPropertyResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class GetDiagnosticServiceResult {
    /**
     * @return The frequency at which the data will be exported.
     * 
     */
    private @Nullable Integer dataExportFrequencySeconds;
    /**
     * @return Extended Location
     * 
     */
    private ExtendedLocationPropertyResponse extendedLocation;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The details of Diagnostic Service Docker Image.
     * 
     */
    private ContainerImageResponse image;
    /**
     * @return The geo-location where the resource lives
     * 
     */
    private String location;
    /**
     * @return The format for the logs generated.
     * 
     */
    private @Nullable String logFormat;
    /**
     * @return The format for the logs generated.
     * 
     */
    private @Nullable String logLevel;
    /**
     * @return The maximum data stored in MiB.
     * 
     */
    private @Nullable Double maxDataStorageSize;
    /**
     * @return The port at which metrics is exposed.
     * 
     */
    private @Nullable Integer metricsPort;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return The destination to collect traces. Diagnostic service will push traces to this endpoint
     * 
     */
    private @Nullable String openTelemetryTracesCollectorAddr;
    /**
     * @return The status of the last operation.
     * 
     */
    private String provisioningState;
    /**
     * @return Metric inactivity timeout.
     * 
     */
    private @Nullable Integer staleDataTimeoutSeconds;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetDiagnosticServiceResult() {}
    /**
     * @return The frequency at which the data will be exported.
     * 
     */
    public Optional dataExportFrequencySeconds() {
        return Optional.ofNullable(this.dataExportFrequencySeconds);
    }
    /**
     * @return Extended Location
     * 
     */
    public ExtendedLocationPropertyResponse extendedLocation() {
        return this.extendedLocation;
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The details of Diagnostic Service Docker Image.
     * 
     */
    public ContainerImageResponse image() {
        return this.image;
    }
    /**
     * @return The geo-location where the resource lives
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return The format for the logs generated.
     * 
     */
    public Optional logFormat() {
        return Optional.ofNullable(this.logFormat);
    }
    /**
     * @return The format for the logs generated.
     * 
     */
    public Optional logLevel() {
        return Optional.ofNullable(this.logLevel);
    }
    /**
     * @return The maximum data stored in MiB.
     * 
     */
    public Optional maxDataStorageSize() {
        return Optional.ofNullable(this.maxDataStorageSize);
    }
    /**
     * @return The port at which metrics is exposed.
     * 
     */
    public Optional metricsPort() {
        return Optional.ofNullable(this.metricsPort);
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The destination to collect traces. Diagnostic service will push traces to this endpoint
     * 
     */
    public Optional openTelemetryTracesCollectorAddr() {
        return Optional.ofNullable(this.openTelemetryTracesCollectorAddr);
    }
    /**
     * @return The status of the last operation.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Metric inactivity timeout.
     * 
     */
    public Optional staleDataTimeoutSeconds() {
        return Optional.ofNullable(this.staleDataTimeoutSeconds);
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetDiagnosticServiceResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer dataExportFrequencySeconds;
        private ExtendedLocationPropertyResponse extendedLocation;
        private String id;
        private ContainerImageResponse image;
        private String location;
        private @Nullable String logFormat;
        private @Nullable String logLevel;
        private @Nullable Double maxDataStorageSize;
        private @Nullable Integer metricsPort;
        private String name;
        private @Nullable String openTelemetryTracesCollectorAddr;
        private String provisioningState;
        private @Nullable Integer staleDataTimeoutSeconds;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private String type;
        public Builder() {}
        public Builder(GetDiagnosticServiceResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dataExportFrequencySeconds = defaults.dataExportFrequencySeconds;
    	      this.extendedLocation = defaults.extendedLocation;
    	      this.id = defaults.id;
    	      this.image = defaults.image;
    	      this.location = defaults.location;
    	      this.logFormat = defaults.logFormat;
    	      this.logLevel = defaults.logLevel;
    	      this.maxDataStorageSize = defaults.maxDataStorageSize;
    	      this.metricsPort = defaults.metricsPort;
    	      this.name = defaults.name;
    	      this.openTelemetryTracesCollectorAddr = defaults.openTelemetryTracesCollectorAddr;
    	      this.provisioningState = defaults.provisioningState;
    	      this.staleDataTimeoutSeconds = defaults.staleDataTimeoutSeconds;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder dataExportFrequencySeconds(@Nullable Integer dataExportFrequencySeconds) {

            this.dataExportFrequencySeconds = dataExportFrequencySeconds;
            return this;
        }
        @CustomType.Setter
        public Builder extendedLocation(ExtendedLocationPropertyResponse extendedLocation) {
            if (extendedLocation == null) {
              throw new MissingRequiredPropertyException("GetDiagnosticServiceResult", "extendedLocation");
            }
            this.extendedLocation = extendedLocation;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetDiagnosticServiceResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder image(ContainerImageResponse image) {
            if (image == null) {
              throw new MissingRequiredPropertyException("GetDiagnosticServiceResult", "image");
            }
            this.image = image;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetDiagnosticServiceResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder logFormat(@Nullable String logFormat) {

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

            this.logLevel = logLevel;
            return this;
        }
        @CustomType.Setter
        public Builder maxDataStorageSize(@Nullable Double maxDataStorageSize) {

            this.maxDataStorageSize = maxDataStorageSize;
            return this;
        }
        @CustomType.Setter
        public Builder metricsPort(@Nullable Integer metricsPort) {

            this.metricsPort = metricsPort;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetDiagnosticServiceResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder openTelemetryTracesCollectorAddr(@Nullable String openTelemetryTracesCollectorAddr) {

            this.openTelemetryTracesCollectorAddr = openTelemetryTracesCollectorAddr;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetDiagnosticServiceResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder staleDataTimeoutSeconds(@Nullable Integer staleDataTimeoutSeconds) {

            this.staleDataTimeoutSeconds = staleDataTimeoutSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetDiagnosticServiceResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetDiagnosticServiceResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetDiagnosticServiceResult build() {
            final var _resultValue = new GetDiagnosticServiceResult();
            _resultValue.dataExportFrequencySeconds = dataExportFrequencySeconds;
            _resultValue.extendedLocation = extendedLocation;
            _resultValue.id = id;
            _resultValue.image = image;
            _resultValue.location = location;
            _resultValue.logFormat = logFormat;
            _resultValue.logLevel = logLevel;
            _resultValue.maxDataStorageSize = maxDataStorageSize;
            _resultValue.metricsPort = metricsPort;
            _resultValue.name = name;
            _resultValue.openTelemetryTracesCollectorAddr = openTelemetryTracesCollectorAddr;
            _resultValue.provisioningState = provisioningState;
            _resultValue.staleDataTimeoutSeconds = staleDataTimeoutSeconds;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy