sdk/java/src/main/java/com/pulumi/ovh/CloudProject/KubeIpRestrictionsArgs.java
<gh_stars>0// *** 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.ovh.CloudProject;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;


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

    public static final KubeIpRestrictionsArgs Empty = new KubeIpRestrictionsArgs();

    /**
     * List of CIDR authorized to interact with the managed Kubernetes cluster.
     * 
     */
    @Import(name="ips", required=true)
    private Output<List<String>> ips;

    /**
     * @return List of CIDR authorized to interact with the managed Kubernetes cluster.
     * 
     */
    public Output<List<String>> ips() {
        return this.ips;
    }

    /**
     * The id of the managed Kubernetes cluster. **Changing this value recreates the resource.**
     * 
     */
    @Import(name="kubeId", required=true)
    private Output<String> kubeId;

    /**
     * @return The id of the managed Kubernetes cluster. **Changing this value recreates the resource.**
     * 
     */
    public Output<String> kubeId() {
        return this.kubeId;
    }

    /**
     * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. **Changing this value recreates the resource.**
     * 
     */
    @Import(name="serviceName", required=true)
    private Output<String> serviceName;

    /**
     * @return The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. **Changing this value recreates the resource.**
     * 
     */
    public Output<String> serviceName() {
        return this.serviceName;
    }

    private KubeIpRestrictionsArgs() {}

    private KubeIpRestrictionsArgs(KubeIpRestrictionsArgs $) {
        this.ips = $.ips;
        this.kubeId = $.kubeId;
        this.serviceName = $.serviceName;
    }

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

    public static final class Builder {
        private KubeIpRestrictionsArgs $;

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

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

        /**
         * @param ips List of CIDR authorized to interact with the managed Kubernetes cluster.
         * 
         * @return builder
         * 
         */
        public Builder ips(Output<List<String>> ips) {
            $.ips = ips;
            return this;
        }

        /**
         * @param ips List of CIDR authorized to interact with the managed Kubernetes cluster.
         * 
         * @return builder
         * 
         */
        public Builder ips(List<String> ips) {
            return ips(Output.of(ips));
        }

        /**
         * @param ips List of CIDR authorized to interact with the managed Kubernetes cluster.
         * 
         * @return builder
         * 
         */
        public Builder ips(String... ips) {
            return ips(List.of(ips));
        }

        /**
         * @param kubeId The id of the managed Kubernetes cluster. **Changing this value recreates the resource.**
         * 
         * @return builder
         * 
         */
        public Builder kubeId(Output<String> kubeId) {
            $.kubeId = kubeId;
            return this;
        }

        /**
         * @param kubeId The id of the managed Kubernetes cluster. **Changing this value recreates the resource.**
         * 
         * @return builder
         * 
         */
        public Builder kubeId(String kubeId) {
            return kubeId(Output.of(kubeId));
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. **Changing this value recreates the resource.**
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output<String> serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. **Changing this value recreates the resource.**
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        public KubeIpRestrictionsArgs build() {
            $.ips = Objects.requireNonNull($.ips, "expected parameter 'ips' to be non-null");
            $.kubeId = Objects.requireNonNull($.kubeId, "expected parameter 'kubeId' to be non-null");
            $.serviceName = Objects.requireNonNull($.serviceName, "expected parameter 'serviceName' to be non-null");
            return $;
        }
    }

}
