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

com.pulumi.azurenative.apimanagement.inputs.BackendPoolItemArgs 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.apimanagement.inputs;

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


/**
 * Backend pool service information
 * 
 */
public final class BackendPoolItemArgs extends com.pulumi.resources.ResourceArgs {

    public static final BackendPoolItemArgs Empty = new BackendPoolItemArgs();

    /**
     * The unique ARM id of the backend entity. The ARM id should refer to an already existing backend entity.
     * 
     */
    @Import(name="id", required=true)
    private Output id;

    /**
     * @return The unique ARM id of the backend entity. The ARM id should refer to an already existing backend entity.
     * 
     */
    public Output id() {
        return this.id;
    }

    /**
     * The priority of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
     * 
     */
    @Import(name="priority")
    private @Nullable Output priority;

    /**
     * @return The priority of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
     * 
     */
    public Optional> priority() {
        return Optional.ofNullable(this.priority);
    }

    /**
     * The weight of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
     * 
     */
    @Import(name="weight")
    private @Nullable Output weight;

    /**
     * @return The weight of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
     * 
     */
    public Optional> weight() {
        return Optional.ofNullable(this.weight);
    }

    private BackendPoolItemArgs() {}

    private BackendPoolItemArgs(BackendPoolItemArgs $) {
        this.id = $.id;
        this.priority = $.priority;
        this.weight = $.weight;
    }

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

    public static final class Builder {
        private BackendPoolItemArgs $;

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

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

        /**
         * @param id The unique ARM id of the backend entity. The ARM id should refer to an already existing backend entity.
         * 
         * @return builder
         * 
         */
        public Builder id(Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The unique ARM id of the backend entity. The ARM id should refer to an already existing backend entity.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param priority The priority of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority The priority of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

        /**
         * @param weight The weight of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
         * 
         * @return builder
         * 
         */
        public Builder weight(@Nullable Output weight) {
            $.weight = weight;
            return this;
        }

        /**
         * @param weight The weight of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
         * 
         * @return builder
         * 
         */
        public Builder weight(Integer weight) {
            return weight(Output.of(weight));
        }

        public BackendPoolItemArgs build() {
            if ($.id == null) {
                throw new MissingRequiredPropertyException("BackendPoolItemArgs", "id");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy