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

com.pulumi.azurenative.iotoperations.outputs.SubscriberQueueLimitResponse 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.iotoperations.outputs;

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

@CustomType
public final class SubscriberQueueLimitResponse {
    /**
     * @return The maximum length of the queue before messages start getting dropped.
     * 
     */
    private @Nullable Double length;
    /**
     * @return The strategy to use for dropping messages from the queue.
     * 
     */
    private @Nullable String strategy;

    private SubscriberQueueLimitResponse() {}
    /**
     * @return The maximum length of the queue before messages start getting dropped.
     * 
     */
    public Optional length() {
        return Optional.ofNullable(this.length);
    }
    /**
     * @return The strategy to use for dropping messages from the queue.
     * 
     */
    public Optional strategy() {
        return Optional.ofNullable(this.strategy);
    }

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

    public static Builder builder(SubscriberQueueLimitResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Double length;
        private @Nullable String strategy;
        public Builder() {}
        public Builder(SubscriberQueueLimitResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.length = defaults.length;
    	      this.strategy = defaults.strategy;
        }

        @CustomType.Setter
        public Builder length(@Nullable Double length) {

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

            this.strategy = strategy;
            return this;
        }
        public SubscriberQueueLimitResponse build() {
            final var _resultValue = new SubscriberQueueLimitResponse();
            _resultValue.length = length;
            _resultValue.strategy = strategy;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy