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

com.pulumi.azurenative.devices.inputs.MessagingEndpointPropertiesArgs Maven / Gradle / Ivy

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

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


/**
 * The properties of the messaging endpoints used by this IoT hub.
 * 
 */
public final class MessagingEndpointPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final MessagingEndpointPropertiesArgs Empty = new MessagingEndpointPropertiesArgs();

    /**
     * The lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
     * 
     */
    @Import(name="lockDurationAsIso8601")
    private @Nullable Output lockDurationAsIso8601;

    /**
     * @return The lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
     * 
     */
    public Optional> lockDurationAsIso8601() {
        return Optional.ofNullable(this.lockDurationAsIso8601);
    }

    /**
     * The number of times the IoT hub attempts to deliver a message. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
     * 
     */
    @Import(name="maxDeliveryCount")
    private @Nullable Output maxDeliveryCount;

    /**
     * @return The number of times the IoT hub attempts to deliver a message. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
     * 
     */
    public Optional> maxDeliveryCount() {
        return Optional.ofNullable(this.maxDeliveryCount);
    }

    /**
     * The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
     * 
     */
    @Import(name="ttlAsIso8601")
    private @Nullable Output ttlAsIso8601;

    /**
     * @return The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
     * 
     */
    public Optional> ttlAsIso8601() {
        return Optional.ofNullable(this.ttlAsIso8601);
    }

    private MessagingEndpointPropertiesArgs() {}

    private MessagingEndpointPropertiesArgs(MessagingEndpointPropertiesArgs $) {
        this.lockDurationAsIso8601 = $.lockDurationAsIso8601;
        this.maxDeliveryCount = $.maxDeliveryCount;
        this.ttlAsIso8601 = $.ttlAsIso8601;
    }

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

    public static final class Builder {
        private MessagingEndpointPropertiesArgs $;

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

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

        /**
         * @param lockDurationAsIso8601 The lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
         * 
         * @return builder
         * 
         */
        public Builder lockDurationAsIso8601(@Nullable Output lockDurationAsIso8601) {
            $.lockDurationAsIso8601 = lockDurationAsIso8601;
            return this;
        }

        /**
         * @param lockDurationAsIso8601 The lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
         * 
         * @return builder
         * 
         */
        public Builder lockDurationAsIso8601(String lockDurationAsIso8601) {
            return lockDurationAsIso8601(Output.of(lockDurationAsIso8601));
        }

        /**
         * @param maxDeliveryCount The number of times the IoT hub attempts to deliver a message. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
         * 
         * @return builder
         * 
         */
        public Builder maxDeliveryCount(@Nullable Output maxDeliveryCount) {
            $.maxDeliveryCount = maxDeliveryCount;
            return this;
        }

        /**
         * @param maxDeliveryCount The number of times the IoT hub attempts to deliver a message. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
         * 
         * @return builder
         * 
         */
        public Builder maxDeliveryCount(Integer maxDeliveryCount) {
            return maxDeliveryCount(Output.of(maxDeliveryCount));
        }

        /**
         * @param ttlAsIso8601 The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
         * 
         * @return builder
         * 
         */
        public Builder ttlAsIso8601(@Nullable Output ttlAsIso8601) {
            $.ttlAsIso8601 = ttlAsIso8601;
            return this;
        }

        /**
         * @param ttlAsIso8601 The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
         * 
         * @return builder
         * 
         */
        public Builder ttlAsIso8601(String ttlAsIso8601) {
            return ttlAsIso8601(Output.of(ttlAsIso8601));
        }

        public MessagingEndpointPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy