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

com.pulumi.spotinst.inputs.StatefulNodeAzureLoadBalancerArgs 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.spotinst.inputs;

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


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

    public static final StatefulNodeAzureLoadBalancerArgs Empty = new StatefulNodeAzureLoadBalancerArgs();

    @Import(name="backendPoolNames", required=true)
    private Output> backendPoolNames;

    public Output> backendPoolNames() {
        return this.backendPoolNames;
    }

    @Import(name="name", required=true)
    private Output name;

    public Output name() {
        return this.name;
    }

    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    @Import(name="sku")
    private @Nullable Output sku;

    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    @Import(name="type", required=true)
    private Output type;

    public Output type() {
        return this.type;
    }

    private StatefulNodeAzureLoadBalancerArgs() {}

    private StatefulNodeAzureLoadBalancerArgs(StatefulNodeAzureLoadBalancerArgs $) {
        this.backendPoolNames = $.backendPoolNames;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.type = $.type;
    }

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

    public static final class Builder {
        private StatefulNodeAzureLoadBalancerArgs $;

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

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

        public Builder backendPoolNames(Output> backendPoolNames) {
            $.backendPoolNames = backendPoolNames;
            return this;
        }

        public Builder backendPoolNames(List backendPoolNames) {
            return backendPoolNames(Output.of(backendPoolNames));
        }

        public Builder backendPoolNames(String... backendPoolNames) {
            return backendPoolNames(List.of(backendPoolNames));
        }

        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        public Builder name(String name) {
            return name(Output.of(name));
        }

        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        public Builder sku(String sku) {
            return sku(Output.of(sku));
        }

        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        public Builder type(String type) {
            return type(Output.of(type));
        }

        public StatefulNodeAzureLoadBalancerArgs build() {
            if ($.backendPoolNames == null) {
                throw new MissingRequiredPropertyException("StatefulNodeAzureLoadBalancerArgs", "backendPoolNames");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("StatefulNodeAzureLoadBalancerArgs", "name");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("StatefulNodeAzureLoadBalancerArgs", "resourceGroupName");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("StatefulNodeAzureLoadBalancerArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy