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

com.pulumi.alicloud.eci.inputs.VirtualNodeState Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.eci.inputs;

import com.pulumi.alicloud.eci.inputs.VirtualNodeTaintArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
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 VirtualNodeState extends com.pulumi.resources.ResourceArgs {

    public static final VirtualNodeState Empty = new VirtualNodeState();

    /**
     * The Id of eip.
     * 
     */
    @Import(name="eipInstanceId")
    private @Nullable Output eipInstanceId;

    /**
     * @return The Id of eip.
     * 
     */
    public Optional> eipInstanceId() {
        return Optional.ofNullable(this.eipInstanceId);
    }

    /**
     * Whether to enable public network. **NOTE:** If `eip_instance_id` is not configured and `enable_public_network` is true, the system will create an elastic public network IP.
     * 
     */
    @Import(name="enablePublicNetwork")
    private @Nullable Output enablePublicNetwork;

    /**
     * @return Whether to enable public network. **NOTE:** If `eip_instance_id` is not configured and `enable_public_network` is true, the system will create an elastic public network IP.
     * 
     */
    public Optional> enablePublicNetwork() {
        return Optional.ofNullable(this.enablePublicNetwork);
    }

    /**
     * The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
     * 
     */
    @Import(name="kubeConfig")
    private @Nullable Output kubeConfig;

    /**
     * @return The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
     * 
     */
    public Optional> kubeConfig() {
        return Optional.ofNullable(this.kubeConfig);
    }

    /**
     * The resource group ID.
     * 
     */
    @Import(name="resourceGroupId")
    private @Nullable Output resourceGroupId;

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

    /**
     * The security group ID.
     * 
     */
    @Import(name="securityGroupId")
    private @Nullable Output securityGroupId;

    /**
     * @return The security group ID.
     * 
     */
    public Optional> securityGroupId() {
        return Optional.ofNullable(this.securityGroupId);
    }

    /**
     * The Status of the virtual node. Valid values: `Cleaned`, `Failed`, `Pending`, `Ready`.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The Status of the virtual node. Valid values: `Cleaned`, `Failed`, `Pending`, `Ready`.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The taint. See `taints` below.
     * 
     */
    @Import(name="taints")
    private @Nullable Output> taints;

    /**
     * @return The taint. See `taints` below.
     * 
     */
    public Optional>> taints() {
        return Optional.ofNullable(this.taints);
    }

    /**
     * The name of the virtual node. The length of the name is limited to `2` to `128` characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
     * 
     */
    @Import(name="virtualNodeName")
    private @Nullable Output virtualNodeName;

    /**
     * @return The name of the virtual node. The length of the name is limited to `2` to `128` characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
     * 
     */
    public Optional> virtualNodeName() {
        return Optional.ofNullable(this.virtualNodeName);
    }

    /**
     * The vswitch id.
     * 
     */
    @Import(name="vswitchId")
    private @Nullable Output vswitchId;

    /**
     * @return The vswitch id.
     * 
     */
    public Optional> vswitchId() {
        return Optional.ofNullable(this.vswitchId);
    }

    /**
     * The Zone.
     * 
     */
    @Import(name="zoneId")
    private @Nullable Output zoneId;

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

    private VirtualNodeState() {}

    private VirtualNodeState(VirtualNodeState $) {
        this.eipInstanceId = $.eipInstanceId;
        this.enablePublicNetwork = $.enablePublicNetwork;
        this.kubeConfig = $.kubeConfig;
        this.resourceGroupId = $.resourceGroupId;
        this.securityGroupId = $.securityGroupId;
        this.status = $.status;
        this.tags = $.tags;
        this.taints = $.taints;
        this.virtualNodeName = $.virtualNodeName;
        this.vswitchId = $.vswitchId;
        this.zoneId = $.zoneId;
    }

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

    public static final class Builder {
        private VirtualNodeState $;

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

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

        /**
         * @param eipInstanceId The Id of eip.
         * 
         * @return builder
         * 
         */
        public Builder eipInstanceId(@Nullable Output eipInstanceId) {
            $.eipInstanceId = eipInstanceId;
            return this;
        }

        /**
         * @param eipInstanceId The Id of eip.
         * 
         * @return builder
         * 
         */
        public Builder eipInstanceId(String eipInstanceId) {
            return eipInstanceId(Output.of(eipInstanceId));
        }

        /**
         * @param enablePublicNetwork Whether to enable public network. **NOTE:** If `eip_instance_id` is not configured and `enable_public_network` is true, the system will create an elastic public network IP.
         * 
         * @return builder
         * 
         */
        public Builder enablePublicNetwork(@Nullable Output enablePublicNetwork) {
            $.enablePublicNetwork = enablePublicNetwork;
            return this;
        }

        /**
         * @param enablePublicNetwork Whether to enable public network. **NOTE:** If `eip_instance_id` is not configured and `enable_public_network` is true, the system will create an elastic public network IP.
         * 
         * @return builder
         * 
         */
        public Builder enablePublicNetwork(Boolean enablePublicNetwork) {
            return enablePublicNetwork(Output.of(enablePublicNetwork));
        }

        /**
         * @param kubeConfig The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
         * 
         * @return builder
         * 
         */
        public Builder kubeConfig(@Nullable Output kubeConfig) {
            $.kubeConfig = kubeConfig;
            return this;
        }

        /**
         * @param kubeConfig The kube config for the k8s cluster. It needs to be connected after Base64 encoding.
         * 
         * @return builder
         * 
         */
        public Builder kubeConfig(String kubeConfig) {
            return kubeConfig(Output.of(kubeConfig));
        }

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

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

        /**
         * @param securityGroupId The security group ID.
         * 
         * @return builder
         * 
         */
        public Builder securityGroupId(@Nullable Output securityGroupId) {
            $.securityGroupId = securityGroupId;
            return this;
        }

        /**
         * @param securityGroupId The security group ID.
         * 
         * @return builder
         * 
         */
        public Builder securityGroupId(String securityGroupId) {
            return securityGroupId(Output.of(securityGroupId));
        }

        /**
         * @param status The Status of the virtual node. Valid values: `Cleaned`, `Failed`, `Pending`, `Ready`.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The Status of the virtual node. Valid values: `Cleaned`, `Failed`, `Pending`, `Ready`.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param taints The taint. See `taints` below.
         * 
         * @return builder
         * 
         */
        public Builder taints(@Nullable Output> taints) {
            $.taints = taints;
            return this;
        }

        /**
         * @param taints The taint. See `taints` below.
         * 
         * @return builder
         * 
         */
        public Builder taints(List taints) {
            return taints(Output.of(taints));
        }

        /**
         * @param taints The taint. See `taints` below.
         * 
         * @return builder
         * 
         */
        public Builder taints(VirtualNodeTaintArgs... taints) {
            return taints(List.of(taints));
        }

        /**
         * @param virtualNodeName The name of the virtual node. The length of the name is limited to `2` to `128` characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
         * 
         * @return builder
         * 
         */
        public Builder virtualNodeName(@Nullable Output virtualNodeName) {
            $.virtualNodeName = virtualNodeName;
            return this;
        }

        /**
         * @param virtualNodeName The name of the virtual node. The length of the name is limited to `2` to `128` characters. It can contain uppercase and lowercase letters, Chinese characters, numbers, half-width colon (:), underscores (_), or hyphens (-), and must start with letters.
         * 
         * @return builder
         * 
         */
        public Builder virtualNodeName(String virtualNodeName) {
            return virtualNodeName(Output.of(virtualNodeName));
        }

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

        /**
         * @param vswitchId The vswitch id.
         * 
         * @return builder
         * 
         */
        public Builder vswitchId(String vswitchId) {
            return vswitchId(Output.of(vswitchId));
        }

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

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

        public VirtualNodeState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy