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

com.pulumi.azure.monitoring.DataCollectionRuleAssociationArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.monitoring;

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


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

    public static final DataCollectionRuleAssociationArgs Empty = new DataCollectionRuleAssociationArgs();

    /**
     * The ID of the Data Collection Endpoint which will be associated to the target resource.
     * 
     */
    @Import(name="dataCollectionEndpointId")
    private @Nullable Output dataCollectionEndpointId;

    /**
     * @return The ID of the Data Collection Endpoint which will be associated to the target resource.
     * 
     */
    public Optional> dataCollectionEndpointId() {
        return Optional.ofNullable(this.dataCollectionEndpointId);
    }

    /**
     * The ID of the Data Collection Rule which will be associated to the target resource.
     * 
     * > **NOTE** Exactly one of `data_collection_endpoint_id` and `data_collection_rule_id` blocks must be specified.
     * 
     */
    @Import(name="dataCollectionRuleId")
    private @Nullable Output dataCollectionRuleId;

    /**
     * @return The ID of the Data Collection Rule which will be associated to the target resource.
     * 
     * > **NOTE** Exactly one of `data_collection_endpoint_id` and `data_collection_rule_id` blocks must be specified.
     * 
     */
    public Optional> dataCollectionRuleId() {
        return Optional.ofNullable(this.dataCollectionRuleId);
    }

    /**
     * The description of the Data Collection Rule Association.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the Data Collection Rule Association.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The name which should be used for this Data Collection Rule Association. Changing this forces a new Data Collection Rule Association to be created. Defaults to `configurationAccessEndpoint`.
     * 
     * > **NOTE** `name` is required when `data_collection_rule_id` is specified. And when `data_collection_endpoint_id` is specified, the `name` is populated with `configurationAccessEndpoint`.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Data Collection Rule Association. Changing this forces a new Data Collection Rule Association to be created. Defaults to `configurationAccessEndpoint`.
     * 
     * > **NOTE** `name` is required when `data_collection_rule_id` is specified. And when `data_collection_endpoint_id` is specified, the `name` is populated with `configurationAccessEndpoint`.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="targetResourceId", required=true)
    private Output targetResourceId;

    /**
     * @return The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.
     * 
     */
    public Output targetResourceId() {
        return this.targetResourceId;
    }

    private DataCollectionRuleAssociationArgs() {}

    private DataCollectionRuleAssociationArgs(DataCollectionRuleAssociationArgs $) {
        this.dataCollectionEndpointId = $.dataCollectionEndpointId;
        this.dataCollectionRuleId = $.dataCollectionRuleId;
        this.description = $.description;
        this.name = $.name;
        this.targetResourceId = $.targetResourceId;
    }

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

    public static final class Builder {
        private DataCollectionRuleAssociationArgs $;

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

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

        /**
         * @param dataCollectionEndpointId The ID of the Data Collection Endpoint which will be associated to the target resource.
         * 
         * @return builder
         * 
         */
        public Builder dataCollectionEndpointId(@Nullable Output dataCollectionEndpointId) {
            $.dataCollectionEndpointId = dataCollectionEndpointId;
            return this;
        }

        /**
         * @param dataCollectionEndpointId The ID of the Data Collection Endpoint which will be associated to the target resource.
         * 
         * @return builder
         * 
         */
        public Builder dataCollectionEndpointId(String dataCollectionEndpointId) {
            return dataCollectionEndpointId(Output.of(dataCollectionEndpointId));
        }

        /**
         * @param dataCollectionRuleId The ID of the Data Collection Rule which will be associated to the target resource.
         * 
         * > **NOTE** Exactly one of `data_collection_endpoint_id` and `data_collection_rule_id` blocks must be specified.
         * 
         * @return builder
         * 
         */
        public Builder dataCollectionRuleId(@Nullable Output dataCollectionRuleId) {
            $.dataCollectionRuleId = dataCollectionRuleId;
            return this;
        }

        /**
         * @param dataCollectionRuleId The ID of the Data Collection Rule which will be associated to the target resource.
         * 
         * > **NOTE** Exactly one of `data_collection_endpoint_id` and `data_collection_rule_id` blocks must be specified.
         * 
         * @return builder
         * 
         */
        public Builder dataCollectionRuleId(String dataCollectionRuleId) {
            return dataCollectionRuleId(Output.of(dataCollectionRuleId));
        }

        /**
         * @param description The description of the Data Collection Rule Association.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the Data Collection Rule Association.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name The name which should be used for this Data Collection Rule Association. Changing this forces a new Data Collection Rule Association to be created. Defaults to `configurationAccessEndpoint`.
         * 
         * > **NOTE** `name` is required when `data_collection_rule_id` is specified. And when `data_collection_endpoint_id` is specified, the `name` is populated with `configurationAccessEndpoint`.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Data Collection Rule Association. Changing this forces a new Data Collection Rule Association to be created. Defaults to `configurationAccessEndpoint`.
         * 
         * > **NOTE** `name` is required when `data_collection_rule_id` is specified. And when `data_collection_endpoint_id` is specified, the `name` is populated with `configurationAccessEndpoint`.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param targetResourceId The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceId(Output targetResourceId) {
            $.targetResourceId = targetResourceId;
            return this;
        }

        /**
         * @param targetResourceId The ID of the Azure Resource which to associate to a Data Collection Rule or a Data Collection Endpoint. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceId(String targetResourceId) {
            return targetResourceId(Output.of(targetResourceId));
        }

        public DataCollectionRuleAssociationArgs build() {
            if ($.targetResourceId == null) {
                throw new MissingRequiredPropertyException("DataCollectionRuleAssociationArgs", "targetResourceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy