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

com.pulumi.azurenative.insights.outputs.RuleMetricDataSourceResponse 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.insights.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RuleMetricDataSourceResponse {
    /**
     * @return the legacy resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
     * 
     */
    private @Nullable String legacyResourceId;
    /**
     * @return the name of the metric that defines what the rule monitors.
     * 
     */
    private @Nullable String metricName;
    /**
     * @return the namespace of the metric.
     * 
     */
    private @Nullable String metricNamespace;
    /**
     * @return specifies the type of data source. There are two types of rule data sources: RuleMetricDataSource and RuleManagementEventDataSource
     * Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource'.
     * 
     */
    private String odataType;
    /**
     * @return the location of the resource.
     * 
     */
    private @Nullable String resourceLocation;
    /**
     * @return the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
     * 
     */
    private @Nullable String resourceUri;

    private RuleMetricDataSourceResponse() {}
    /**
     * @return the legacy resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
     * 
     */
    public Optional legacyResourceId() {
        return Optional.ofNullable(this.legacyResourceId);
    }
    /**
     * @return the name of the metric that defines what the rule monitors.
     * 
     */
    public Optional metricName() {
        return Optional.ofNullable(this.metricName);
    }
    /**
     * @return the namespace of the metric.
     * 
     */
    public Optional metricNamespace() {
        return Optional.ofNullable(this.metricNamespace);
    }
    /**
     * @return specifies the type of data source. There are two types of rule data sources: RuleMetricDataSource and RuleManagementEventDataSource
     * Expected value is 'Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource'.
     * 
     */
    public String odataType() {
        return this.odataType;
    }
    /**
     * @return the location of the resource.
     * 
     */
    public Optional resourceLocation() {
        return Optional.ofNullable(this.resourceLocation);
    }
    /**
     * @return the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
     * 
     */
    public Optional resourceUri() {
        return Optional.ofNullable(this.resourceUri);
    }

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

    public static Builder builder(RuleMetricDataSourceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String legacyResourceId;
        private @Nullable String metricName;
        private @Nullable String metricNamespace;
        private String odataType;
        private @Nullable String resourceLocation;
        private @Nullable String resourceUri;
        public Builder() {}
        public Builder(RuleMetricDataSourceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.legacyResourceId = defaults.legacyResourceId;
    	      this.metricName = defaults.metricName;
    	      this.metricNamespace = defaults.metricNamespace;
    	      this.odataType = defaults.odataType;
    	      this.resourceLocation = defaults.resourceLocation;
    	      this.resourceUri = defaults.resourceUri;
        }

        @CustomType.Setter
        public Builder legacyResourceId(@Nullable String legacyResourceId) {

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

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

            this.metricNamespace = metricNamespace;
            return this;
        }
        @CustomType.Setter
        public Builder odataType(String odataType) {
            if (odataType == null) {
              throw new MissingRequiredPropertyException("RuleMetricDataSourceResponse", "odataType");
            }
            this.odataType = odataType;
            return this;
        }
        @CustomType.Setter
        public Builder resourceLocation(@Nullable String resourceLocation) {

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

            this.resourceUri = resourceUri;
            return this;
        }
        public RuleMetricDataSourceResponse build() {
            final var _resultValue = new RuleMetricDataSourceResponse();
            _resultValue.legacyResourceId = legacyResourceId;
            _resultValue.metricName = metricName;
            _resultValue.metricNamespace = metricNamespace;
            _resultValue.odataType = odataType;
            _resultValue.resourceLocation = resourceLocation;
            _resultValue.resourceUri = resourceUri;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy