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

com.pulumi.azurenative.streamanalytics.outputs.EventHubV2OutputDataSourceResponse 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.streamanalytics.outputs;

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

@CustomType
public final class EventHubV2OutputDataSourceResponse {
    /**
     * @return Authentication Mode.
     * 
     */
    private @Nullable String authenticationMode;
    /**
     * @return The name of the Event Hub. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String eventHubName;
    /**
     * @return The key/column that is used to determine to which partition to send event data.
     * 
     */
    private @Nullable String partitionKey;
    /**
     * @return The properties associated with this Event Hub output.
     * 
     */
    private @Nullable List propertyColumns;
    /**
     * @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 data source output will be written to. Required on PUT (CreateOrReplace) requests.
     * Expected value is 'Microsoft.EventHub/EventHub'.
     * 
     */
    private String type;

    private EventHubV2OutputDataSourceResponse() {}
    /**
     * @return Authentication Mode.
     * 
     */
    public Optional authenticationMode() {
        return Optional.ofNullable(this.authenticationMode);
    }
    /**
     * @return The name of the Event Hub. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional eventHubName() {
        return Optional.ofNullable(this.eventHubName);
    }
    /**
     * @return The key/column that is used to determine to which partition to send event data.
     * 
     */
    public Optional partitionKey() {
        return Optional.ofNullable(this.partitionKey);
    }
    /**
     * @return The properties associated with this Event Hub output.
     * 
     */
    public List propertyColumns() {
        return this.propertyColumns == null ? List.of() : this.propertyColumns;
    }
    /**
     * @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 data source output will be written to. Required on PUT (CreateOrReplace) requests.
     * Expected value is 'Microsoft.EventHub/EventHub'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(EventHubV2OutputDataSourceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String authenticationMode;
        private @Nullable String eventHubName;
        private @Nullable String partitionKey;
        private @Nullable List propertyColumns;
        private @Nullable String serviceBusNamespace;
        private @Nullable String sharedAccessPolicyKey;
        private @Nullable String sharedAccessPolicyName;
        private String type;
        public Builder() {}
        public Builder(EventHubV2OutputDataSourceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authenticationMode = defaults.authenticationMode;
    	      this.eventHubName = defaults.eventHubName;
    	      this.partitionKey = defaults.partitionKey;
    	      this.propertyColumns = defaults.propertyColumns;
    	      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 eventHubName(@Nullable String eventHubName) {

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

            this.partitionKey = partitionKey;
            return this;
        }
        @CustomType.Setter
        public Builder propertyColumns(@Nullable List propertyColumns) {

            this.propertyColumns = propertyColumns;
            return this;
        }
        public Builder propertyColumns(String... propertyColumns) {
            return propertyColumns(List.of(propertyColumns));
        }
        @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("EventHubV2OutputDataSourceResponse", "type");
            }
            this.type = type;
            return this;
        }
        public EventHubV2OutputDataSourceResponse build() {
            final var _resultValue = new EventHubV2OutputDataSourceResponse();
            _resultValue.authenticationMode = authenticationMode;
            _resultValue.eventHubName = eventHubName;
            _resultValue.partitionKey = partitionKey;
            _resultValue.propertyColumns = propertyColumns;
            _resultValue.serviceBusNamespace = serviceBusNamespace;
            _resultValue.sharedAccessPolicyKey = sharedAccessPolicyKey;
            _resultValue.sharedAccessPolicyName = sharedAccessPolicyName;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy