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

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

import com.pulumi.azurenative.hybridcontainerservice.enums.Mode;
import com.pulumi.azurenative.hybridcontainerservice.enums.OsType;
import com.pulumi.azurenative.hybridcontainerservice.inputs.AgentPoolExtendedLocationArgs;
import com.pulumi.azurenative.hybridcontainerservice.inputs.AgentPoolProvisioningStatusStatusArgs;
import com.pulumi.azurenative.hybridcontainerservice.inputs.CloudProviderProfileArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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;


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

    public static final AgentPoolArgs Empty = new AgentPoolArgs();

    /**
     * Parameter for the name of the agent pool in the provisioned cluster
     * 
     */
    @Import(name="agentPoolName")
    private @Nullable Output agentPoolName;

    /**
     * @return Parameter for the name of the agent pool in the provisioned cluster
     * 
     */
    public Optional> agentPoolName() {
        return Optional.ofNullable(this.agentPoolName);
    }

    /**
     * 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);
    }

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

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

    /**
     * The resource location
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The resource location
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * 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);
    }

    /**
     * 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);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Parameter for the name of the provisioned cluster
     * 
     */
    @Import(name="resourceName", required=true)
    private Output resourceName;

    /**
     * @return Parameter for the name of the provisioned cluster
     * 
     */
    public Output resourceName() {
        return this.resourceName;
    }

    /**
     * HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * Resource tags
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

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

    /**
     * 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 AgentPoolArgs() {}

    private AgentPoolArgs(AgentPoolArgs $) {
        this.agentPoolName = $.agentPoolName;
        this.availabilityZones = $.availabilityZones;
        this.cloudProviderProfile = $.cloudProviderProfile;
        this.count = $.count;
        this.extendedLocation = $.extendedLocation;
        this.location = $.location;
        this.maxCount = $.maxCount;
        this.maxPods = $.maxPods;
        this.minCount = $.minCount;
        this.mode = $.mode;
        this.nodeImageVersion = $.nodeImageVersion;
        this.nodeLabels = $.nodeLabels;
        this.nodeTaints = $.nodeTaints;
        this.osType = $.osType;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceName = $.resourceName;
        this.status = $.status;
        this.tags = $.tags;
        this.vmSize = $.vmSize;
    }

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

    public static final class Builder {
        private AgentPoolArgs $;

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

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

        /**
         * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster
         * 
         * @return builder
         * 
         */
        public Builder agentPoolName(@Nullable Output agentPoolName) {
            $.agentPoolName = agentPoolName;
            return this;
        }

        /**
         * @param agentPoolName Parameter for the name of the agent pool in the provisioned cluster
         * 
         * @return builder
         * 
         */
        public Builder agentPoolName(String agentPoolName) {
            return agentPoolName(Output.of(agentPoolName));
        }

        /**
         * @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));
        }

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

        public Builder extendedLocation(AgentPoolExtendedLocationArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @param location The resource location
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The resource location
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @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 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 resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param resourceName Parameter for the name of the provisioned cluster
         * 
         * @return builder
         * 
         */
        public Builder resourceName(Output resourceName) {
            $.resourceName = resourceName;
            return this;
        }

        /**
         * @param resourceName Parameter for the name of the provisioned cluster
         * 
         * @return builder
         * 
         */
        public Builder resourceName(String resourceName) {
            return resourceName(Output.of(resourceName));
        }

        /**
         * @param status HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool
         * 
         * @return builder
         * 
         */
        public Builder status(AgentPoolProvisioningStatusStatusArgs status) {
            return status(Output.of(status));
        }

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

        /**
         * @param tags Resource tags
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @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 AgentPoolArgs build() {
            $.count = Codegen.integerProp("count").output().arg($.count).def(1).getNullable();
            $.mode = Codegen.stringProp("mode").left(Mode.class).output().arg($.mode).def("User").getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AgentPoolArgs", "resourceGroupName");
            }
            if ($.resourceName == null) {
                throw new MissingRequiredPropertyException("AgentPoolArgs", "resourceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy