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

com.pulumi.azurenative.hybridcontainerservice.inputs.LoadBalancerProfileArgs 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.azurenative.hybridcontainerservice.inputs;

import com.pulumi.azurenative.hybridcontainerservice.enums.Mode;
import com.pulumi.azurenative.hybridcontainerservice.enums.OsType;
import com.pulumi.azurenative.hybridcontainerservice.inputs.CloudProviderProfileArgs;
import com.pulumi.azurenative.hybridcontainerservice.inputs.LinuxProfilePropertiesArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * LoadBalancerProfile - Profile of the cluster load balancer.
 * 
 */
public final class LoadBalancerProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final LoadBalancerProfileArgs Empty = new LoadBalancerProfileArgs();

    /**
     * AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
     * 
     */
    @Import(name="availabilityZones")
    private @Nullable Output> availabilityZones;

    /**
     * @return AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
     * 
     */
    public Optional>> availabilityZones() {
        return Optional.ofNullable(this.availabilityZones);
    }

    /**
     * The underlying cloud infra provider properties.
     * 
     */
    @Import(name="cloudProviderProfile")
    private @Nullable Output cloudProviderProfile;

    /**
     * @return The underlying cloud infra provider properties.
     * 
     */
    public Optional> cloudProviderProfile() {
        return Optional.ofNullable(this.cloudProviderProfile);
    }

    /**
     * Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
     * 
     */
    @Import(name="count")
    private @Nullable Output count;

    /**
     * @return Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
     * 
     */
    public Optional> count() {
        return Optional.ofNullable(this.count);
    }

    /**
     * Profile for Linux VMs in the container service cluster.
     * 
     */
    @Import(name="linuxProfile")
    private @Nullable Output linuxProfile;

    /**
     * @return Profile for Linux VMs in the container service cluster.
     * 
     */
    public Optional> linuxProfile() {
        return Optional.ofNullable(this.linuxProfile);
    }

    /**
     * The maximum number of nodes for auto-scaling
     * 
     */
    @Import(name="maxCount")
    private @Nullable Output maxCount;

    /**
     * @return The maximum number of nodes for auto-scaling
     * 
     */
    public Optional> maxCount() {
        return Optional.ofNullable(this.maxCount);
    }

    /**
     * The maximum number of pods that can run on a node.
     * 
     */
    @Import(name="maxPods")
    private @Nullable Output maxPods;

    /**
     * @return The maximum number of pods that can run on a node.
     * 
     */
    public Optional> maxPods() {
        return Optional.ofNullable(this.maxPods);
    }

    /**
     * The minimum number of nodes for auto-scaling
     * 
     */
    @Import(name="minCount")
    private @Nullable Output minCount;

    /**
     * @return The minimum number of nodes for auto-scaling
     * 
     */
    public Optional> minCount() {
        return Optional.ofNullable(this.minCount);
    }

    /**
     * Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
     * 
     */
    @Import(name="mode")
    private @Nullable Output> mode;

    /**
     * @return Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
     * 
     */
    public Optional>> mode() {
        return Optional.ofNullable(this.mode);
    }

    /**
     * Unique name of the agent pool profile in the context of the subscription and resource group.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Unique name of the agent pool profile in the context of the subscription and resource group.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The version of node image
     * 
     */
    @Import(name="nodeImageVersion")
    private @Nullable Output nodeImageVersion;

    /**
     * @return The version of node image
     * 
     */
    public Optional> nodeImageVersion() {
        return Optional.ofNullable(this.nodeImageVersion);
    }

    /**
     * NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
     * 
     */
    @Import(name="nodeLabels")
    private @Nullable Output> nodeLabels;

    /**
     * @return NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
     * 
     */
    public Optional>> nodeLabels() {
        return Optional.ofNullable(this.nodeLabels);
    }

    /**
     * NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
     * 
     */
    @Import(name="nodeTaints")
    private @Nullable Output> nodeTaints;

    /**
     * @return NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
     * 
     */
    public Optional>> nodeTaints() {
        return Optional.ofNullable(this.nodeTaints);
    }

    /**
     * OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
     * 
     */
    @Import(name="osType")
    private @Nullable Output> osType;

    /**
     * @return OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
     * 
     */
    public Optional>> osType() {
        return Optional.ofNullable(this.osType);
    }

    /**
     * VmSize - The size of the agent pool VMs.
     * 
     */
    @Import(name="vmSize")
    private @Nullable Output vmSize;

    /**
     * @return VmSize - The size of the agent pool VMs.
     * 
     */
    public Optional> vmSize() {
        return Optional.ofNullable(this.vmSize);
    }

    private LoadBalancerProfileArgs() {}

    private LoadBalancerProfileArgs(LoadBalancerProfileArgs $) {
        this.availabilityZones = $.availabilityZones;
        this.cloudProviderProfile = $.cloudProviderProfile;
        this.count = $.count;
        this.linuxProfile = $.linuxProfile;
        this.maxCount = $.maxCount;
        this.maxPods = $.maxPods;
        this.minCount = $.minCount;
        this.mode = $.mode;
        this.name = $.name;
        this.nodeImageVersion = $.nodeImageVersion;
        this.nodeLabels = $.nodeLabels;
        this.nodeTaints = $.nodeTaints;
        this.osType = $.osType;
        this.vmSize = $.vmSize;
    }

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

    public static final class Builder {
        private LoadBalancerProfileArgs $;

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

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

        /**
         * @param availabilityZones AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
         * 
         * @return builder
         * 
         */
        public Builder availabilityZones(@Nullable Output> availabilityZones) {
            $.availabilityZones = availabilityZones;
            return this;
        }

        /**
         * @param availabilityZones AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
         * 
         * @return builder
         * 
         */
        public Builder availabilityZones(List availabilityZones) {
            return availabilityZones(Output.of(availabilityZones));
        }

        /**
         * @param availabilityZones AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
         * 
         * @return builder
         * 
         */
        public Builder availabilityZones(String... availabilityZones) {
            return availabilityZones(List.of(availabilityZones));
        }

        /**
         * @param cloudProviderProfile The underlying cloud infra provider properties.
         * 
         * @return builder
         * 
         */
        public Builder cloudProviderProfile(@Nullable Output cloudProviderProfile) {
            $.cloudProviderProfile = cloudProviderProfile;
            return this;
        }

        /**
         * @param cloudProviderProfile The underlying cloud infra provider properties.
         * 
         * @return builder
         * 
         */
        public Builder cloudProviderProfile(CloudProviderProfileArgs cloudProviderProfile) {
            return cloudProviderProfile(Output.of(cloudProviderProfile));
        }

        /**
         * @param count Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
         * 
         * @return builder
         * 
         */
        public Builder count(@Nullable Output count) {
            $.count = count;
            return this;
        }

        /**
         * @param count Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
         * 
         * @return builder
         * 
         */
        public Builder count(Integer count) {
            return count(Output.of(count));
        }

        /**
         * @param linuxProfile Profile for Linux VMs in the container service cluster.
         * 
         * @return builder
         * 
         */
        public Builder linuxProfile(@Nullable Output linuxProfile) {
            $.linuxProfile = linuxProfile;
            return this;
        }

        /**
         * @param linuxProfile Profile for Linux VMs in the container service cluster.
         * 
         * @return builder
         * 
         */
        public Builder linuxProfile(LinuxProfilePropertiesArgs linuxProfile) {
            return linuxProfile(Output.of(linuxProfile));
        }

        /**
         * @param maxCount The maximum number of nodes for auto-scaling
         * 
         * @return builder
         * 
         */
        public Builder maxCount(@Nullable Output maxCount) {
            $.maxCount = maxCount;
            return this;
        }

        /**
         * @param maxCount The maximum number of nodes for auto-scaling
         * 
         * @return builder
         * 
         */
        public Builder maxCount(Integer maxCount) {
            return maxCount(Output.of(maxCount));
        }

        /**
         * @param maxPods The maximum number of pods that can run on a node.
         * 
         * @return builder
         * 
         */
        public Builder maxPods(@Nullable Output maxPods) {
            $.maxPods = maxPods;
            return this;
        }

        /**
         * @param maxPods The maximum number of pods that can run on a node.
         * 
         * @return builder
         * 
         */
        public Builder maxPods(Integer maxPods) {
            return maxPods(Output.of(maxPods));
        }

        /**
         * @param minCount The minimum number of nodes for auto-scaling
         * 
         * @return builder
         * 
         */
        public Builder minCount(@Nullable Output minCount) {
            $.minCount = minCount;
            return this;
        }

        /**
         * @param minCount The minimum number of nodes for auto-scaling
         * 
         * @return builder
         * 
         */
        public Builder minCount(Integer minCount) {
            return minCount(Output.of(minCount));
        }

        /**
         * @param mode Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output> mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
         * 
         * @return builder
         * 
         */
        public Builder mode(Either mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param mode Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Either.ofLeft(mode));
        }

        /**
         * @param mode Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
         * 
         * @return builder
         * 
         */
        public Builder mode(Mode mode) {
            return mode(Either.ofRight(mode));
        }

        /**
         * @param name Unique name of the agent pool profile in the context of the subscription and resource group.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Unique name of the agent pool profile in the context of the subscription and resource group.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param nodeImageVersion The version of node image
         * 
         * @return builder
         * 
         */
        public Builder nodeImageVersion(@Nullable Output nodeImageVersion) {
            $.nodeImageVersion = nodeImageVersion;
            return this;
        }

        /**
         * @param nodeImageVersion The version of node image
         * 
         * @return builder
         * 
         */
        public Builder nodeImageVersion(String nodeImageVersion) {
            return nodeImageVersion(Output.of(nodeImageVersion));
        }

        /**
         * @param nodeLabels NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
         * 
         * @return builder
         * 
         */
        public Builder nodeLabels(@Nullable Output> nodeLabels) {
            $.nodeLabels = nodeLabels;
            return this;
        }

        /**
         * @param nodeLabels NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
         * 
         * @return builder
         * 
         */
        public Builder nodeLabels(Map nodeLabels) {
            return nodeLabels(Output.of(nodeLabels));
        }

        /**
         * @param nodeTaints NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
         * 
         * @return builder
         * 
         */
        public Builder nodeTaints(@Nullable Output> nodeTaints) {
            $.nodeTaints = nodeTaints;
            return this;
        }

        /**
         * @param nodeTaints NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
         * 
         * @return builder
         * 
         */
        public Builder nodeTaints(List nodeTaints) {
            return nodeTaints(Output.of(nodeTaints));
        }

        /**
         * @param nodeTaints NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
         * 
         * @return builder
         * 
         */
        public Builder nodeTaints(String... nodeTaints) {
            return nodeTaints(List.of(nodeTaints));
        }

        /**
         * @param osType OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
         * 
         * @return builder
         * 
         */
        public Builder osType(@Nullable Output> osType) {
            $.osType = osType;
            return this;
        }

        /**
         * @param osType OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
         * 
         * @return builder
         * 
         */
        public Builder osType(Either osType) {
            return osType(Output.of(osType));
        }

        /**
         * @param osType OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
         * 
         * @return builder
         * 
         */
        public Builder osType(String osType) {
            return osType(Either.ofLeft(osType));
        }

        /**
         * @param osType OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
         * 
         * @return builder
         * 
         */
        public Builder osType(OsType osType) {
            return osType(Either.ofRight(osType));
        }

        /**
         * @param vmSize VmSize - The size of the agent pool VMs.
         * 
         * @return builder
         * 
         */
        public Builder vmSize(@Nullable Output vmSize) {
            $.vmSize = vmSize;
            return this;
        }

        /**
         * @param vmSize VmSize - The size of the agent pool VMs.
         * 
         * @return builder
         * 
         */
        public Builder vmSize(String vmSize) {
            return vmSize(Output.of(vmSize));
        }

        public LoadBalancerProfileArgs build() {
            $.count = Codegen.integerProp("count").output().arg($.count).def(1).getNullable();
            $.mode = Codegen.stringProp("mode").left(Mode.class).output().arg($.mode).def("User").getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy