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

com.pulumi.azurenative.network.inputs.ApplicationGatewayLoadDistributionTargetArgs Maven / Gradle / Ivy

The 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.network.inputs;

import com.pulumi.azurenative.network.inputs.SubResourceArgs;
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;


/**
 * Load Distribution Target of an application gateway.
 * 
 */
public final class ApplicationGatewayLoadDistributionTargetArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationGatewayLoadDistributionTargetArgs Empty = new ApplicationGatewayLoadDistributionTargetArgs();

    /**
     * Backend address pool resource of the application gateway.
     * 
     */
    @Import(name="backendAddressPool")
    private @Nullable Output backendAddressPool;

    /**
     * @return Backend address pool resource of the application gateway.
     * 
     */
    public Optional> backendAddressPool() {
        return Optional.ofNullable(this.backendAddressPool);
    }

    /**
     * Resource ID.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return Resource ID.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * Name of the load distribution policy that is unique within an Application Gateway.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the load distribution policy that is unique within an Application Gateway.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Weight per server. Range between 1 and 100.
     * 
     */
    @Import(name="weightPerServer")
    private @Nullable Output weightPerServer;

    /**
     * @return Weight per server. Range between 1 and 100.
     * 
     */
    public Optional> weightPerServer() {
        return Optional.ofNullable(this.weightPerServer);
    }

    private ApplicationGatewayLoadDistributionTargetArgs() {}

    private ApplicationGatewayLoadDistributionTargetArgs(ApplicationGatewayLoadDistributionTargetArgs $) {
        this.backendAddressPool = $.backendAddressPool;
        this.id = $.id;
        this.name = $.name;
        this.weightPerServer = $.weightPerServer;
    }

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

    public static final class Builder {
        private ApplicationGatewayLoadDistributionTargetArgs $;

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

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

        /**
         * @param backendAddressPool Backend address pool resource of the application gateway.
         * 
         * @return builder
         * 
         */
        public Builder backendAddressPool(@Nullable Output backendAddressPool) {
            $.backendAddressPool = backendAddressPool;
            return this;
        }

        /**
         * @param backendAddressPool Backend address pool resource of the application gateway.
         * 
         * @return builder
         * 
         */
        public Builder backendAddressPool(SubResourceArgs backendAddressPool) {
            return backendAddressPool(Output.of(backendAddressPool));
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Resource ID.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param name Name of the load distribution policy that is unique within an Application Gateway.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the load distribution policy that is unique within an Application Gateway.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param weightPerServer Weight per server. Range between 1 and 100.
         * 
         * @return builder
         * 
         */
        public Builder weightPerServer(@Nullable Output weightPerServer) {
            $.weightPerServer = weightPerServer;
            return this;
        }

        /**
         * @param weightPerServer Weight per server. Range between 1 and 100.
         * 
         * @return builder
         * 
         */
        public Builder weightPerServer(Integer weightPerServer) {
            return weightPerServer(Output.of(weightPerServer));
        }

        public ApplicationGatewayLoadDistributionTargetArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy