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

com.pulumi.googlenative.gkeonprem.v1.inputs.VmwareNetworkConfigArgs 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.googlenative.gkeonprem.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.gkeonprem.v1.inputs.VmwareControlPlaneV2ConfigArgs;
import com.pulumi.googlenative.gkeonprem.v1.inputs.VmwareDhcpIpConfigArgs;
import com.pulumi.googlenative.gkeonprem.v1.inputs.VmwareHostConfigArgs;
import com.pulumi.googlenative.gkeonprem.v1.inputs.VmwareStaticIpConfigArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specifies network config for the VMware user cluster.
 * 
 */
public final class VmwareNetworkConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final VmwareNetworkConfigArgs Empty = new VmwareNetworkConfigArgs();

    /**
     * Configuration for control plane V2 mode.
     * 
     */
    @Import(name="controlPlaneV2Config")
    private @Nullable Output controlPlaneV2Config;

    /**
     * @return Configuration for control plane V2 mode.
     * 
     */
    public Optional> controlPlaneV2Config() {
        return Optional.ofNullable(this.controlPlaneV2Config);
    }

    /**
     * Configuration settings for a DHCP IP configuration.
     * 
     */
    @Import(name="dhcpIpConfig")
    private @Nullable Output dhcpIpConfig;

    /**
     * @return Configuration settings for a DHCP IP configuration.
     * 
     */
    public Optional> dhcpIpConfig() {
        return Optional.ofNullable(this.dhcpIpConfig);
    }

    /**
     * Represents common network settings irrespective of the host's IP address.
     * 
     */
    @Import(name="hostConfig")
    private @Nullable Output hostConfig;

    /**
     * @return Represents common network settings irrespective of the host's IP address.
     * 
     */
    public Optional> hostConfig() {
        return Optional.ofNullable(this.hostConfig);
    }

    /**
     * All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
     * 
     */
    @Import(name="podAddressCidrBlocks", required=true)
    private Output> podAddressCidrBlocks;

    /**
     * @return All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
     * 
     */
    public Output> podAddressCidrBlocks() {
        return this.podAddressCidrBlocks;
    }

    /**
     * All services in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
     * 
     */
    @Import(name="serviceAddressCidrBlocks", required=true)
    private Output> serviceAddressCidrBlocks;

    /**
     * @return All services in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
     * 
     */
    public Output> serviceAddressCidrBlocks() {
        return this.serviceAddressCidrBlocks;
    }

    /**
     * Configuration settings for a static IP configuration.
     * 
     */
    @Import(name="staticIpConfig")
    private @Nullable Output staticIpConfig;

    /**
     * @return Configuration settings for a static IP configuration.
     * 
     */
    public Optional> staticIpConfig() {
        return Optional.ofNullable(this.staticIpConfig);
    }

    private VmwareNetworkConfigArgs() {}

    private VmwareNetworkConfigArgs(VmwareNetworkConfigArgs $) {
        this.controlPlaneV2Config = $.controlPlaneV2Config;
        this.dhcpIpConfig = $.dhcpIpConfig;
        this.hostConfig = $.hostConfig;
        this.podAddressCidrBlocks = $.podAddressCidrBlocks;
        this.serviceAddressCidrBlocks = $.serviceAddressCidrBlocks;
        this.staticIpConfig = $.staticIpConfig;
    }

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

    public static final class Builder {
        private VmwareNetworkConfigArgs $;

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

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

        /**
         * @param controlPlaneV2Config Configuration for control plane V2 mode.
         * 
         * @return builder
         * 
         */
        public Builder controlPlaneV2Config(@Nullable Output controlPlaneV2Config) {
            $.controlPlaneV2Config = controlPlaneV2Config;
            return this;
        }

        /**
         * @param controlPlaneV2Config Configuration for control plane V2 mode.
         * 
         * @return builder
         * 
         */
        public Builder controlPlaneV2Config(VmwareControlPlaneV2ConfigArgs controlPlaneV2Config) {
            return controlPlaneV2Config(Output.of(controlPlaneV2Config));
        }

        /**
         * @param dhcpIpConfig Configuration settings for a DHCP IP configuration.
         * 
         * @return builder
         * 
         */
        public Builder dhcpIpConfig(@Nullable Output dhcpIpConfig) {
            $.dhcpIpConfig = dhcpIpConfig;
            return this;
        }

        /**
         * @param dhcpIpConfig Configuration settings for a DHCP IP configuration.
         * 
         * @return builder
         * 
         */
        public Builder dhcpIpConfig(VmwareDhcpIpConfigArgs dhcpIpConfig) {
            return dhcpIpConfig(Output.of(dhcpIpConfig));
        }

        /**
         * @param hostConfig Represents common network settings irrespective of the host's IP address.
         * 
         * @return builder
         * 
         */
        public Builder hostConfig(@Nullable Output hostConfig) {
            $.hostConfig = hostConfig;
            return this;
        }

        /**
         * @param hostConfig Represents common network settings irrespective of the host's IP address.
         * 
         * @return builder
         * 
         */
        public Builder hostConfig(VmwareHostConfigArgs hostConfig) {
            return hostConfig(Output.of(hostConfig));
        }

        /**
         * @param podAddressCidrBlocks All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
         * 
         * @return builder
         * 
         */
        public Builder podAddressCidrBlocks(Output> podAddressCidrBlocks) {
            $.podAddressCidrBlocks = podAddressCidrBlocks;
            return this;
        }

        /**
         * @param podAddressCidrBlocks All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
         * 
         * @return builder
         * 
         */
        public Builder podAddressCidrBlocks(List podAddressCidrBlocks) {
            return podAddressCidrBlocks(Output.of(podAddressCidrBlocks));
        }

        /**
         * @param podAddressCidrBlocks All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
         * 
         * @return builder
         * 
         */
        public Builder podAddressCidrBlocks(String... podAddressCidrBlocks) {
            return podAddressCidrBlocks(List.of(podAddressCidrBlocks));
        }

        /**
         * @param serviceAddressCidrBlocks All services in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
         * 
         * @return builder
         * 
         */
        public Builder serviceAddressCidrBlocks(Output> serviceAddressCidrBlocks) {
            $.serviceAddressCidrBlocks = serviceAddressCidrBlocks;
            return this;
        }

        /**
         * @param serviceAddressCidrBlocks All services in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
         * 
         * @return builder
         * 
         */
        public Builder serviceAddressCidrBlocks(List serviceAddressCidrBlocks) {
            return serviceAddressCidrBlocks(Output.of(serviceAddressCidrBlocks));
        }

        /**
         * @param serviceAddressCidrBlocks All services in the cluster are assigned an RFC1918 IPv4 address from these ranges. Only a single range is supported. This field cannot be changed after creation.
         * 
         * @return builder
         * 
         */
        public Builder serviceAddressCidrBlocks(String... serviceAddressCidrBlocks) {
            return serviceAddressCidrBlocks(List.of(serviceAddressCidrBlocks));
        }

        /**
         * @param staticIpConfig Configuration settings for a static IP configuration.
         * 
         * @return builder
         * 
         */
        public Builder staticIpConfig(@Nullable Output staticIpConfig) {
            $.staticIpConfig = staticIpConfig;
            return this;
        }

        /**
         * @param staticIpConfig Configuration settings for a static IP configuration.
         * 
         * @return builder
         * 
         */
        public Builder staticIpConfig(VmwareStaticIpConfigArgs staticIpConfig) {
            return staticIpConfig(Output.of(staticIpConfig));
        }

        public VmwareNetworkConfigArgs build() {
            $.podAddressCidrBlocks = Objects.requireNonNull($.podAddressCidrBlocks, "expected parameter 'podAddressCidrBlocks' to be non-null");
            $.serviceAddressCidrBlocks = Objects.requireNonNull($.serviceAddressCidrBlocks, "expected parameter 'serviceAddressCidrBlocks' to be non-null");
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy