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

com.pulumi.azurenative.devices.outputs.EventHubPropertiesResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.devices.outputs;

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

@CustomType
public final class EventHubPropertiesResponse {
    /**
     * @return The Event Hub-compatible endpoint.
     * 
     */
    private String endpoint;
    /**
     * @return The number of partitions for receiving device-to-cloud messages in the Event Hub-compatible endpoint. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.
     * 
     */
    private @Nullable Integer partitionCount;
    /**
     * @return The partition ids in the Event Hub-compatible endpoint.
     * 
     */
    private List partitionIds;
    /**
     * @return The Event Hub-compatible name.
     * 
     */
    private String path;
    /**
     * @return The retention time for device-to-cloud messages in days. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages
     * 
     */
    private @Nullable Double retentionTimeInDays;

    private EventHubPropertiesResponse() {}
    /**
     * @return The Event Hub-compatible endpoint.
     * 
     */
    public String endpoint() {
        return this.endpoint;
    }
    /**
     * @return The number of partitions for receiving device-to-cloud messages in the Event Hub-compatible endpoint. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages.
     * 
     */
    public Optional partitionCount() {
        return Optional.ofNullable(this.partitionCount);
    }
    /**
     * @return The partition ids in the Event Hub-compatible endpoint.
     * 
     */
    public List partitionIds() {
        return this.partitionIds;
    }
    /**
     * @return The Event Hub-compatible name.
     * 
     */
    public String path() {
        return this.path;
    }
    /**
     * @return The retention time for device-to-cloud messages in days. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages
     * 
     */
    public Optional retentionTimeInDays() {
        return Optional.ofNullable(this.retentionTimeInDays);
    }

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

    public static Builder builder(EventHubPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String endpoint;
        private @Nullable Integer partitionCount;
        private List partitionIds;
        private String path;
        private @Nullable Double retentionTimeInDays;
        public Builder() {}
        public Builder(EventHubPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.endpoint = defaults.endpoint;
    	      this.partitionCount = defaults.partitionCount;
    	      this.partitionIds = defaults.partitionIds;
    	      this.path = defaults.path;
    	      this.retentionTimeInDays = defaults.retentionTimeInDays;
        }

        @CustomType.Setter
        public Builder endpoint(String endpoint) {
            if (endpoint == null) {
              throw new MissingRequiredPropertyException("EventHubPropertiesResponse", "endpoint");
            }
            this.endpoint = endpoint;
            return this;
        }
        @CustomType.Setter
        public Builder partitionCount(@Nullable Integer partitionCount) {

            this.partitionCount = partitionCount;
            return this;
        }
        @CustomType.Setter
        public Builder partitionIds(List partitionIds) {
            if (partitionIds == null) {
              throw new MissingRequiredPropertyException("EventHubPropertiesResponse", "partitionIds");
            }
            this.partitionIds = partitionIds;
            return this;
        }
        public Builder partitionIds(String... partitionIds) {
            return partitionIds(List.of(partitionIds));
        }
        @CustomType.Setter
        public Builder path(String path) {
            if (path == null) {
              throw new MissingRequiredPropertyException("EventHubPropertiesResponse", "path");
            }
            this.path = path;
            return this;
        }
        @CustomType.Setter
        public Builder retentionTimeInDays(@Nullable Double retentionTimeInDays) {

            this.retentionTimeInDays = retentionTimeInDays;
            return this;
        }
        public EventHubPropertiesResponse build() {
            final var _resultValue = new EventHubPropertiesResponse();
            _resultValue.endpoint = endpoint;
            _resultValue.partitionCount = partitionCount;
            _resultValue.partitionIds = partitionIds;
            _resultValue.path = path;
            _resultValue.retentionTimeInDays = retentionTimeInDays;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy