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

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

// *** 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.azurenative.devices.inputs.FeedbackPropertiesArgs;
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 IoT hub cloud-to-device messaging properties.
 * 
 */
public final class CloudToDevicePropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final CloudToDevicePropertiesArgs Empty = new CloudToDevicePropertiesArgs();

    /**
     * The default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
     * 
     */
    @Import(name="defaultTtlAsIso8601")
    private @Nullable Output defaultTtlAsIso8601;

    /**
     * @return The default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
     * 
     */
    public Optional> defaultTtlAsIso8601() {
        return Optional.ofNullable(this.defaultTtlAsIso8601);
    }

    /**
     * The properties of the feedback queue for cloud-to-device messages.
     * 
     */
    @Import(name="feedback")
    private @Nullable Output feedback;

    /**
     * @return The properties of the feedback queue for cloud-to-device messages.
     * 
     */
    public Optional> feedback() {
        return Optional.ofNullable(this.feedback);
    }

    /**
     * The max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
     * 
     */
    @Import(name="maxDeliveryCount")
    private @Nullable Output maxDeliveryCount;

    /**
     * @return The max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
     * 
     */
    public Optional> maxDeliveryCount() {
        return Optional.ofNullable(this.maxDeliveryCount);
    }

    private CloudToDevicePropertiesArgs() {}

    private CloudToDevicePropertiesArgs(CloudToDevicePropertiesArgs $) {
        this.defaultTtlAsIso8601 = $.defaultTtlAsIso8601;
        this.feedback = $.feedback;
        this.maxDeliveryCount = $.maxDeliveryCount;
    }

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

    public static final class Builder {
        private CloudToDevicePropertiesArgs $;

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

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

        /**
         * @param defaultTtlAsIso8601 The default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
         * 
         * @return builder
         * 
         */
        public Builder defaultTtlAsIso8601(@Nullable Output defaultTtlAsIso8601) {
            $.defaultTtlAsIso8601 = defaultTtlAsIso8601;
            return this;
        }

        /**
         * @param defaultTtlAsIso8601 The default time to live for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
         * 
         * @return builder
         * 
         */
        public Builder defaultTtlAsIso8601(String defaultTtlAsIso8601) {
            return defaultTtlAsIso8601(Output.of(defaultTtlAsIso8601));
        }

        /**
         * @param feedback The properties of the feedback queue for cloud-to-device messages.
         * 
         * @return builder
         * 
         */
        public Builder feedback(@Nullable Output feedback) {
            $.feedback = feedback;
            return this;
        }

        /**
         * @param feedback The properties of the feedback queue for cloud-to-device messages.
         * 
         * @return builder
         * 
         */
        public Builder feedback(FeedbackPropertiesArgs feedback) {
            return feedback(Output.of(feedback));
        }

        /**
         * @param maxDeliveryCount The max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
         * 
         * @return builder
         * 
         */
        public Builder maxDeliveryCount(@Nullable Output maxDeliveryCount) {
            $.maxDeliveryCount = maxDeliveryCount;
            return this;
        }

        /**
         * @param maxDeliveryCount The max delivery count for cloud-to-device messages in the device queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
         * 
         * @return builder
         * 
         */
        public Builder maxDeliveryCount(Integer maxDeliveryCount) {
            return maxDeliveryCount(Output.of(maxDeliveryCount));
        }

        public CloudToDevicePropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy