// *** 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.gcp.gkeonprem.outputs;

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

@CustomType
public final class BareMetalAdminClusterNetworkConfigIslandModeCidr {
    /**
     * @return All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. This field cannot be changed after creation.
     * 
     */
    private List<String> podAddressCidrBlocks;
    /**
     * @return All services in the cluster are assigned an RFC1918 IPv4 address from these ranges. This field cannot be changed after creation.
     * 
     */
    private List<String> serviceAddressCidrBlocks;

    private BareMetalAdminClusterNetworkConfigIslandModeCidr() {}
    /**
     * @return All pods in the cluster are assigned an RFC1918 IPv4 address from these ranges. This field cannot be changed after creation.
     * 
     */
    public List<String> podAddressCidrBlocks() {
        return this.podAddressCidrBlocks;
    }
    /**
     * @return All services in the cluster are assigned an RFC1918 IPv4 address from these ranges. This field cannot be changed after creation.
     * 
     */
    public List<String> serviceAddressCidrBlocks() {
        return this.serviceAddressCidrBlocks;
    }

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

    public static Builder builder(BareMetalAdminClusterNetworkConfigIslandModeCidr defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<String> podAddressCidrBlocks;
        private List<String> serviceAddressCidrBlocks;
        public Builder() {}
        public Builder(BareMetalAdminClusterNetworkConfigIslandModeCidr defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.podAddressCidrBlocks = defaults.podAddressCidrBlocks;
    	      this.serviceAddressCidrBlocks = defaults.serviceAddressCidrBlocks;
        }

        @CustomType.Setter
        public Builder podAddressCidrBlocks(List<String> podAddressCidrBlocks) {
            this.podAddressCidrBlocks = Objects.requireNonNull(podAddressCidrBlocks);
            return this;
        }
        public Builder podAddressCidrBlocks(String... podAddressCidrBlocks) {
            return podAddressCidrBlocks(List.of(podAddressCidrBlocks));
        }
        @CustomType.Setter
        public Builder serviceAddressCidrBlocks(List<String> serviceAddressCidrBlocks) {
            this.serviceAddressCidrBlocks = Objects.requireNonNull(serviceAddressCidrBlocks);
            return this;
        }
        public Builder serviceAddressCidrBlocks(String... serviceAddressCidrBlocks) {
            return serviceAddressCidrBlocks(List.of(serviceAddressCidrBlocks));
        }
        public BareMetalAdminClusterNetworkConfigIslandModeCidr build() {
            final var o = new BareMetalAdminClusterNetworkConfigIslandModeCidr();
            o.podAddressCidrBlocks = podAddressCidrBlocks;
            o.serviceAddressCidrBlocks = serviceAddressCidrBlocks;
            return o;
        }
    }
}
