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

com.pulumi.azurenative.insights.inputs.RuleManagementEventDataSourceArgs Maven / Gradle / Ivy

The 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.inputs;

import com.pulumi.azurenative.insights.inputs.RuleManagementEventClaimsDataSourceArgs;
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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * A rule management event data source. The discriminator fields is always RuleManagementEventDataSource in this case.
 * 
 */
public final class RuleManagementEventDataSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final RuleManagementEventDataSourceArgs Empty = new RuleManagementEventDataSourceArgs();

    /**
     * the claims.
     * 
     */
    @Import(name="claims")
    private @Nullable Output claims;

    /**
     * @return the claims.
     * 
     */
    public Optional> claims() {
        return Optional.ofNullable(this.claims);
    }

    /**
     * the event name.
     * 
     */
    @Import(name="eventName")
    private @Nullable Output eventName;

    /**
     * @return the event name.
     * 
     */
    public Optional> eventName() {
        return Optional.ofNullable(this.eventName);
    }

    /**
     * the event source.
     * 
     */
    @Import(name="eventSource")
    private @Nullable Output eventSource;

    /**
     * @return the event source.
     * 
     */
    public Optional> eventSource() {
        return Optional.ofNullable(this.eventSource);
    }

    /**
     * the legacy resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
     * 
     */
    @Import(name="legacyResourceId")
    private @Nullable Output legacyResourceId;

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

    /**
     * the level.
     * 
     */
    @Import(name="level")
    private @Nullable Output level;

    /**
     * @return the level.
     * 
     */
    public Optional> level() {
        return Optional.ofNullable(this.level);
    }

    /**
     * the namespace of the metric.
     * 
     */
    @Import(name="metricNamespace")
    private @Nullable Output metricNamespace;

    /**
     * @return the namespace of the metric.
     * 
     */
    public Optional> metricNamespace() {
        return Optional.ofNullable(this.metricNamespace);
    }

    /**
     * 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.RuleManagementEventDataSource'.
     * 
     */
    @Import(name="odataType", required=true)
    private Output odataType;

    /**
     * @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.RuleManagementEventDataSource'.
     * 
     */
    public Output odataType() {
        return this.odataType;
    }

    /**
     * The name of the operation that should be checked for. If no name is provided, any operation will match.
     * 
     */
    @Import(name="operationName")
    private @Nullable Output operationName;

    /**
     * @return The name of the operation that should be checked for. If no name is provided, any operation will match.
     * 
     */
    public Optional> operationName() {
        return Optional.ofNullable(this.operationName);
    }

    /**
     * the resource group name.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output resourceGroupName;

    /**
     * @return the resource group name.
     * 
     */
    public Optional> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * the location of the resource.
     * 
     */
    @Import(name="resourceLocation")
    private @Nullable Output resourceLocation;

    /**
     * @return the location of the resource.
     * 
     */
    public Optional> resourceLocation() {
        return Optional.ofNullable(this.resourceLocation);
    }

    /**
     * the resource provider name.
     * 
     */
    @Import(name="resourceProviderName")
    private @Nullable Output resourceProviderName;

    /**
     * @return the resource provider name.
     * 
     */
    public Optional> resourceProviderName() {
        return Optional.ofNullable(this.resourceProviderName);
    }

    /**
     * the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
     * 
     */
    @Import(name="resourceUri")
    private @Nullable Output resourceUri;

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

    /**
     * The status of the operation that should be checked for. If no status is provided, any status will match.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The status of the operation that should be checked for. If no status is provided, any status will match.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * the substatus.
     * 
     */
    @Import(name="subStatus")
    private @Nullable Output subStatus;

    /**
     * @return the substatus.
     * 
     */
    public Optional> subStatus() {
        return Optional.ofNullable(this.subStatus);
    }

    private RuleManagementEventDataSourceArgs() {}

    private RuleManagementEventDataSourceArgs(RuleManagementEventDataSourceArgs $) {
        this.claims = $.claims;
        this.eventName = $.eventName;
        this.eventSource = $.eventSource;
        this.legacyResourceId = $.legacyResourceId;
        this.level = $.level;
        this.metricNamespace = $.metricNamespace;
        this.odataType = $.odataType;
        this.operationName = $.operationName;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceLocation = $.resourceLocation;
        this.resourceProviderName = $.resourceProviderName;
        this.resourceUri = $.resourceUri;
        this.status = $.status;
        this.subStatus = $.subStatus;
    }

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

    public static final class Builder {
        private RuleManagementEventDataSourceArgs $;

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

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

        /**
         * @param claims the claims.
         * 
         * @return builder
         * 
         */
        public Builder claims(@Nullable Output claims) {
            $.claims = claims;
            return this;
        }

        /**
         * @param claims the claims.
         * 
         * @return builder
         * 
         */
        public Builder claims(RuleManagementEventClaimsDataSourceArgs claims) {
            return claims(Output.of(claims));
        }

        /**
         * @param eventName the event name.
         * 
         * @return builder
         * 
         */
        public Builder eventName(@Nullable Output eventName) {
            $.eventName = eventName;
            return this;
        }

        /**
         * @param eventName the event name.
         * 
         * @return builder
         * 
         */
        public Builder eventName(String eventName) {
            return eventName(Output.of(eventName));
        }

        /**
         * @param eventSource the event source.
         * 
         * @return builder
         * 
         */
        public Builder eventSource(@Nullable Output eventSource) {
            $.eventSource = eventSource;
            return this;
        }

        /**
         * @param eventSource the event source.
         * 
         * @return builder
         * 
         */
        public Builder eventSource(String eventSource) {
            return eventSource(Output.of(eventSource));
        }

        /**
         * @param legacyResourceId the legacy resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
         * 
         * @return builder
         * 
         */
        public Builder legacyResourceId(@Nullable Output legacyResourceId) {
            $.legacyResourceId = legacyResourceId;
            return this;
        }

        /**
         * @param legacyResourceId the legacy resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
         * 
         * @return builder
         * 
         */
        public Builder legacyResourceId(String legacyResourceId) {
            return legacyResourceId(Output.of(legacyResourceId));
        }

        /**
         * @param level the level.
         * 
         * @return builder
         * 
         */
        public Builder level(@Nullable Output level) {
            $.level = level;
            return this;
        }

        /**
         * @param level the level.
         * 
         * @return builder
         * 
         */
        public Builder level(String level) {
            return level(Output.of(level));
        }

        /**
         * @param metricNamespace the namespace of the metric.
         * 
         * @return builder
         * 
         */
        public Builder metricNamespace(@Nullable Output metricNamespace) {
            $.metricNamespace = metricNamespace;
            return this;
        }

        /**
         * @param metricNamespace the namespace of the metric.
         * 
         * @return builder
         * 
         */
        public Builder metricNamespace(String metricNamespace) {
            return metricNamespace(Output.of(metricNamespace));
        }

        /**
         * @param odataType 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.RuleManagementEventDataSource'.
         * 
         * @return builder
         * 
         */
        public Builder odataType(Output odataType) {
            $.odataType = odataType;
            return this;
        }

        /**
         * @param odataType 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.RuleManagementEventDataSource'.
         * 
         * @return builder
         * 
         */
        public Builder odataType(String odataType) {
            return odataType(Output.of(odataType));
        }

        /**
         * @param operationName The name of the operation that should be checked for. If no name is provided, any operation will match.
         * 
         * @return builder
         * 
         */
        public Builder operationName(@Nullable Output operationName) {
            $.operationName = operationName;
            return this;
        }

        /**
         * @param operationName The name of the operation that should be checked for. If no name is provided, any operation will match.
         * 
         * @return builder
         * 
         */
        public Builder operationName(String operationName) {
            return operationName(Output.of(operationName));
        }

        /**
         * @param resourceGroupName the resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

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

        /**
         * @param resourceLocation the location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceLocation(@Nullable Output resourceLocation) {
            $.resourceLocation = resourceLocation;
            return this;
        }

        /**
         * @param resourceLocation the location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceLocation(String resourceLocation) {
            return resourceLocation(Output.of(resourceLocation));
        }

        /**
         * @param resourceProviderName the resource provider name.
         * 
         * @return builder
         * 
         */
        public Builder resourceProviderName(@Nullable Output resourceProviderName) {
            $.resourceProviderName = resourceProviderName;
            return this;
        }

        /**
         * @param resourceProviderName the resource provider name.
         * 
         * @return builder
         * 
         */
        public Builder resourceProviderName(String resourceProviderName) {
            return resourceProviderName(Output.of(resourceProviderName));
        }

        /**
         * @param resourceUri the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
         * 
         * @return builder
         * 
         */
        public Builder resourceUri(@Nullable Output resourceUri) {
            $.resourceUri = resourceUri;
            return this;
        }

        /**
         * @param resourceUri the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule.
         * 
         * @return builder
         * 
         */
        public Builder resourceUri(String resourceUri) {
            return resourceUri(Output.of(resourceUri));
        }

        /**
         * @param status The status of the operation that should be checked for. If no status is provided, any status will match.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of the operation that should be checked for. If no status is provided, any status will match.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param subStatus the substatus.
         * 
         * @return builder
         * 
         */
        public Builder subStatus(@Nullable Output subStatus) {
            $.subStatus = subStatus;
            return this;
        }

        /**
         * @param subStatus the substatus.
         * 
         * @return builder
         * 
         */
        public Builder subStatus(String subStatus) {
            return subStatus(Output.of(subStatus));
        }

        public RuleManagementEventDataSourceArgs build() {
            $.odataType = Codegen.stringProp("odataType").output().arg($.odataType).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy