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

com.pulumi.azurenative.devices.inputs.EventHubPropertiesArgs 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.inputs;

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


/**
 * The properties of the provisioned Event Hub-compatible endpoint used by the IoT hub.
 * 
 */
public final class EventHubPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final EventHubPropertiesArgs Empty = new EventHubPropertiesArgs();

    /**
     * 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.
     * 
     */
    @Import(name="partitionCount")
    private @Nullable Output partitionCount;

    /**
     * @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);
    }

    /**
     * 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
     * 
     */
    @Import(name="retentionTimeInDays")
    private @Nullable Output retentionTimeInDays;

    /**
     * @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);
    }

    private EventHubPropertiesArgs() {}

    private EventHubPropertiesArgs(EventHubPropertiesArgs $) {
        this.partitionCount = $.partitionCount;
        this.retentionTimeInDays = $.retentionTimeInDays;
    }

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

    public static final class Builder {
        private EventHubPropertiesArgs $;

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

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

        /**
         * @param partitionCount 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.
         * 
         * @return builder
         * 
         */
        public Builder partitionCount(@Nullable Output partitionCount) {
            $.partitionCount = partitionCount;
            return this;
        }

        /**
         * @param partitionCount 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.
         * 
         * @return builder
         * 
         */
        public Builder partitionCount(Integer partitionCount) {
            return partitionCount(Output.of(partitionCount));
        }

        /**
         * @param retentionTimeInDays 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
         * 
         * @return builder
         * 
         */
        public Builder retentionTimeInDays(@Nullable Output retentionTimeInDays) {
            $.retentionTimeInDays = retentionTimeInDays;
            return this;
        }

        /**
         * @param retentionTimeInDays 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
         * 
         * @return builder
         * 
         */
        public Builder retentionTimeInDays(Double retentionTimeInDays) {
            return retentionTimeInDays(Output.of(retentionTimeInDays));
        }

        public EventHubPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy