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

com.pulumi.azurenative.streamanalytics.outputs.EventHubStreamInputDataSourceResponse 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.streamanalytics.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 EventHubStreamInputDataSourceResponse {
    /**
     * @return Authentication Mode.
     * 
     */
    private @Nullable String authenticationMode;
    /**
     * @return The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s default consumer group.
     * 
     */
    private @Nullable String consumerGroupName;
    /**
     * @return The name of the Event Hub. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String eventHubName;
    /**
     * @return The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String serviceBusNamespace;
    /**
     * @return The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String sharedAccessPolicyKey;
    /**
     * @return The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String sharedAccessPolicyName;
    /**
     * @return Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
     * Expected value is 'Microsoft.ServiceBus/EventHub'.
     * 
     */
    private String type;

    private EventHubStreamInputDataSourceResponse() {}
    /**
     * @return Authentication Mode.
     * 
     */
    public Optional authenticationMode() {
        return Optional.ofNullable(this.authenticationMode);
    }
    /**
     * @return The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer group names for multiple inputs allows each of those inputs to receive the same events from the Event Hub. If not specified, the input uses the Event Hub’s default consumer group.
     * 
     */
    public Optional consumerGroupName() {
        return Optional.ofNullable(this.consumerGroupName);
    }
    /**
     * @return The name of the Event Hub. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional eventHubName() {
        return Optional.ofNullable(this.eventHubName);
    }
    /**
     * @return The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional serviceBusNamespace() {
        return Optional.ofNullable(this.serviceBusNamespace);
    }
    /**
     * @return The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional sharedAccessPolicyKey() {
        return Optional.ofNullable(this.sharedAccessPolicyKey);
    }
    /**
     * @return The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional sharedAccessPolicyName() {
        return Optional.ofNullable(this.sharedAccessPolicyName);
    }
    /**
     * @return Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
     * Expected value is 'Microsoft.ServiceBus/EventHub'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(EventHubStreamInputDataSourceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String authenticationMode;
        private @Nullable String consumerGroupName;
        private @Nullable String eventHubName;
        private @Nullable String serviceBusNamespace;
        private @Nullable String sharedAccessPolicyKey;
        private @Nullable String sharedAccessPolicyName;
        private String type;
        public Builder() {}
        public Builder(EventHubStreamInputDataSourceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authenticationMode = defaults.authenticationMode;
    	      this.consumerGroupName = defaults.consumerGroupName;
    	      this.eventHubName = defaults.eventHubName;
    	      this.serviceBusNamespace = defaults.serviceBusNamespace;
    	      this.sharedAccessPolicyKey = defaults.sharedAccessPolicyKey;
    	      this.sharedAccessPolicyName = defaults.sharedAccessPolicyName;
    	      this.type = defaults.type;
        }

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

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

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

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

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

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

            this.sharedAccessPolicyName = sharedAccessPolicyName;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("EventHubStreamInputDataSourceResponse", "type");
            }
            this.type = type;
            return this;
        }
        public EventHubStreamInputDataSourceResponse build() {
            final var _resultValue = new EventHubStreamInputDataSourceResponse();
            _resultValue.authenticationMode = authenticationMode;
            _resultValue.consumerGroupName = consumerGroupName;
            _resultValue.eventHubName = eventHubName;
            _resultValue.serviceBusNamespace = serviceBusNamespace;
            _resultValue.sharedAccessPolicyKey = sharedAccessPolicyKey;
            _resultValue.sharedAccessPolicyName = sharedAccessPolicyName;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy