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

com.pulumi.googlenative.compute.v1.inputs.BackendServiceLocalityLoadBalancingPolicyConfigPolicyArgs Maven / Gradle / Ivy

// *** 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.googlenative.compute.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.compute.v1.enums.BackendServiceLocalityLoadBalancingPolicyConfigPolicyName;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The configuration for a built-in load balancing policy.
 * 
 */
public final class BackendServiceLocalityLoadBalancingPolicyConfigPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final BackendServiceLocalityLoadBalancingPolicyConfigPolicyArgs Empty = new BackendServiceLocalityLoadBalancingPolicyConfigPolicyArgs();

    /**
     * The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private BackendServiceLocalityLoadBalancingPolicyConfigPolicyArgs() {}

    private BackendServiceLocalityLoadBalancingPolicyConfigPolicyArgs(BackendServiceLocalityLoadBalancingPolicyConfigPolicyArgs $) {
        this.name = $.name;
    }

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

    public static final class Builder {
        private BackendServiceLocalityLoadBalancingPolicyConfigPolicyArgs $;

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

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

        /**
         * @param name The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected.
         * 
         * @return builder
         * 
         */
        public Builder name(BackendServiceLocalityLoadBalancingPolicyConfigPolicyName name) {
            return name(Output.of(name));
        }

        public BackendServiceLocalityLoadBalancingPolicyConfigPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy