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

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

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

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


/**
 * Definition of Event Hub configuration.
 * 
 */
public final class DataImportSourcesEventHubArgs extends com.pulumi.resources.ResourceArgs {

    public static final DataImportSourcesEventHubArgs Empty = new DataImportSourcesEventHubArgs();

    /**
     * Event Hub consumer group name
     * 
     */
    @Import(name="consumerGroup")
    private @Nullable Output consumerGroup;

    /**
     * @return Event Hub consumer group name
     * 
     */
    public Optional> consumerGroup() {
        return Optional.ofNullable(this.consumerGroup);
    }

    /**
     * A friendly name for the data source.
     * This name should be unique across all data sources (regardless of type) within the data collection rule.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return A friendly name for the data source.
     * This name should be unique across all data sources (regardless of type) within the data collection rule.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The stream to collect from EventHub
     * 
     */
    @Import(name="stream")
    private @Nullable Output stream;

    /**
     * @return The stream to collect from EventHub
     * 
     */
    public Optional> stream() {
        return Optional.ofNullable(this.stream);
    }

    private DataImportSourcesEventHubArgs() {}

    private DataImportSourcesEventHubArgs(DataImportSourcesEventHubArgs $) {
        this.consumerGroup = $.consumerGroup;
        this.name = $.name;
        this.stream = $.stream;
    }

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

    public static final class Builder {
        private DataImportSourcesEventHubArgs $;

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

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

        /**
         * @param consumerGroup Event Hub consumer group name
         * 
         * @return builder
         * 
         */
        public Builder consumerGroup(@Nullable Output consumerGroup) {
            $.consumerGroup = consumerGroup;
            return this;
        }

        /**
         * @param consumerGroup Event Hub consumer group name
         * 
         * @return builder
         * 
         */
        public Builder consumerGroup(String consumerGroup) {
            return consumerGroup(Output.of(consumerGroup));
        }

        /**
         * @param name A friendly name for the data source.
         * This name should be unique across all data sources (regardless of type) within the data collection rule.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name A friendly name for the data source.
         * This name should be unique across all data sources (regardless of type) within the data collection rule.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param stream The stream to collect from EventHub
         * 
         * @return builder
         * 
         */
        public Builder stream(@Nullable Output stream) {
            $.stream = stream;
            return this;
        }

        /**
         * @param stream The stream to collect from EventHub
         * 
         * @return builder
         * 
         */
        public Builder stream(String stream) {
            return stream(Output.of(stream));
        }

        public DataImportSourcesEventHubArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy