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

com.ovhcloud.pulumi.ovh.CloudProject.KubeIpRestrictionsArgs Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.CloudProject;

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;


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> ips;

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

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

    /**
     * @return The id of the managed Kubernetes cluster. **Changing this value recreates the resource.**
     * 
     */
    public Output 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 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 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> ips) {
            $.ips = ips;
            return this;
        }

        /**
         * @param ips List of CIDR authorized to interact with the managed Kubernetes cluster.
         * 
         * @return builder
         * 
         */
        public Builder ips(List 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 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 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() {
            if ($.ips == null) {
                throw new MissingRequiredPropertyException("KubeIpRestrictionsArgs", "ips");
            }
            if ($.kubeId == null) {
                throw new MissingRequiredPropertyException("KubeIpRestrictionsArgs", "kubeId");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("KubeIpRestrictionsArgs", "serviceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy