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

com.pulumi.azurenative.devices.outputs.MessagingEndpointPropertiesResponse 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 java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class MessagingEndpointPropertiesResponse {
    /**
     * @return The lock duration. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
     * 
     */
    private @Nullable String lockDurationAsIso8601;
    /**
     * @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.
     * 
     */
    private @Nullable Integer maxDeliveryCount;
    /**
     * @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.
     * 
     */
    private @Nullable String ttlAsIso8601;

    private MessagingEndpointPropertiesResponse() {}
    /**
     * @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);
    }
    /**
     * @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);
    }
    /**
     * @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);
    }

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

    public static Builder builder(MessagingEndpointPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String lockDurationAsIso8601;
        private @Nullable Integer maxDeliveryCount;
        private @Nullable String ttlAsIso8601;
        public Builder() {}
        public Builder(MessagingEndpointPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.lockDurationAsIso8601 = defaults.lockDurationAsIso8601;
    	      this.maxDeliveryCount = defaults.maxDeliveryCount;
    	      this.ttlAsIso8601 = defaults.ttlAsIso8601;
        }

        @CustomType.Setter
        public Builder lockDurationAsIso8601(@Nullable String lockDurationAsIso8601) {

            this.lockDurationAsIso8601 = lockDurationAsIso8601;
            return this;
        }
        @CustomType.Setter
        public Builder maxDeliveryCount(@Nullable Integer maxDeliveryCount) {

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

            this.ttlAsIso8601 = ttlAsIso8601;
            return this;
        }
        public MessagingEndpointPropertiesResponse build() {
            final var _resultValue = new MessagingEndpointPropertiesResponse();
            _resultValue.lockDurationAsIso8601 = lockDurationAsIso8601;
            _resultValue.maxDeliveryCount = maxDeliveryCount;
            _resultValue.ttlAsIso8601 = ttlAsIso8601;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy