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

com.pulumi.alicloud.rocketmq.inputs.ConsumerGroupConsumeRetryPolicyArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.rocketmq.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;


public final class ConsumerGroupConsumeRetryPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConsumerGroupConsumeRetryPolicyArgs Empty = new ConsumerGroupConsumeRetryPolicyArgs();

    /**
     * Maximum number of retries.
     * 
     */
    @Import(name="maxRetryTimes")
    private @Nullable Output maxRetryTimes;

    /**
     * @return Maximum number of retries.
     * 
     */
    public Optional> maxRetryTimes() {
        return Optional.ofNullable(this.maxRetryTimes);
    }

    /**
     * Consume retry policy.
     * 
     */
    @Import(name="retryPolicy")
    private @Nullable Output retryPolicy;

    /**
     * @return Consume retry policy.
     * 
     */
    public Optional> retryPolicy() {
        return Optional.ofNullable(this.retryPolicy);
    }

    private ConsumerGroupConsumeRetryPolicyArgs() {}

    private ConsumerGroupConsumeRetryPolicyArgs(ConsumerGroupConsumeRetryPolicyArgs $) {
        this.maxRetryTimes = $.maxRetryTimes;
        this.retryPolicy = $.retryPolicy;
    }

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

    public static final class Builder {
        private ConsumerGroupConsumeRetryPolicyArgs $;

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

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

        /**
         * @param maxRetryTimes Maximum number of retries.
         * 
         * @return builder
         * 
         */
        public Builder maxRetryTimes(@Nullable Output maxRetryTimes) {
            $.maxRetryTimes = maxRetryTimes;
            return this;
        }

        /**
         * @param maxRetryTimes Maximum number of retries.
         * 
         * @return builder
         * 
         */
        public Builder maxRetryTimes(Integer maxRetryTimes) {
            return maxRetryTimes(Output.of(maxRetryTimes));
        }

        /**
         * @param retryPolicy Consume retry policy.
         * 
         * @return builder
         * 
         */
        public Builder retryPolicy(@Nullable Output retryPolicy) {
            $.retryPolicy = retryPolicy;
            return this;
        }

        /**
         * @param retryPolicy Consume retry policy.
         * 
         * @return builder
         * 
         */
        public Builder retryPolicy(String retryPolicy) {
            return retryPolicy(Output.of(retryPolicy));
        }

        public ConsumerGroupConsumeRetryPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy