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

com.pulumi.googlenative.gkeonprem.v1.inputs.BareMetalIslandModeCidrConfigArgs 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 java.lang.String;
import java.util.List;
import java.util.Objects;


/**
 * Specifies the cluster CIDR configuration while running in island mode.
 * 
 */
public final class BareMetalIslandModeCidrConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final BareMetalIslandModeCidrConfigArgs Empty = new BareMetalIslandModeCidrConfigArgs();

    /**
     * All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. 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. 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. This field is mutable after creation starting with version 1.15.
     * 
     */
    @Import(name="serviceAddressCidrBlocks", required=true)
    private Output> serviceAddressCidrBlocks;

    /**
     * @return All services in the cluster are assigned an RFC1918 IPv4 address from these ranges. This field is mutable after creation starting with version 1.15.
     * 
     */
    public Output> serviceAddressCidrBlocks() {
        return this.serviceAddressCidrBlocks;
    }

    private BareMetalIslandModeCidrConfigArgs() {}

    private BareMetalIslandModeCidrConfigArgs(BareMetalIslandModeCidrConfigArgs $) {
        this.podAddressCidrBlocks = $.podAddressCidrBlocks;
        this.serviceAddressCidrBlocks = $.serviceAddressCidrBlocks;
    }

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

    public static final class Builder {
        private BareMetalIslandModeCidrConfigArgs $;

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

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

        /**
         * @param podAddressCidrBlocks All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. 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. 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. 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. This field is mutable after creation starting with version 1.15.
         * 
         * @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. This field is mutable after creation starting with version 1.15.
         * 
         * @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. This field is mutable after creation starting with version 1.15.
         * 
         * @return builder
         * 
         */
        public Builder serviceAddressCidrBlocks(String... serviceAddressCidrBlocks) {
            return serviceAddressCidrBlocks(List.of(serviceAddressCidrBlocks));
        }

        public BareMetalIslandModeCidrConfigArgs 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