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

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class NodePoolNetworkConfigAdditionalPodNetworkConfig {
    /**
     * @return The maximum number of pods per node which use this pod network.
     * 
     */
    private @Nullable Integer maxPodsPerNode;
    /**
     * @return The name of the secondary range on the subnet which provides IP address for this pod range.
     * 
     */
    private @Nullable String secondaryPodRange;
    /**
     * @return Name of the subnetwork where the additional pod network belongs.
     * 
     */
    private @Nullable String subnetwork;

    private NodePoolNetworkConfigAdditionalPodNetworkConfig() {}
    /**
     * @return The maximum number of pods per node which use this pod network.
     * 
     */
    public Optional<Integer> maxPodsPerNode() {
        return Optional.ofNullable(this.maxPodsPerNode);
    }
    /**
     * @return The name of the secondary range on the subnet which provides IP address for this pod range.
     * 
     */
    public Optional<String> secondaryPodRange() {
        return Optional.ofNullable(this.secondaryPodRange);
    }
    /**
     * @return Name of the subnetwork where the additional pod network belongs.
     * 
     */
    public Optional<String> subnetwork() {
        return Optional.ofNullable(this.subnetwork);
    }

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

    public static Builder builder(NodePoolNetworkConfigAdditionalPodNetworkConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer maxPodsPerNode;
        private @Nullable String secondaryPodRange;
        private @Nullable String subnetwork;
        public Builder() {}
        public Builder(NodePoolNetworkConfigAdditionalPodNetworkConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.maxPodsPerNode = defaults.maxPodsPerNode;
    	      this.secondaryPodRange = defaults.secondaryPodRange;
    	      this.subnetwork = defaults.subnetwork;
        }

        @CustomType.Setter
        public Builder maxPodsPerNode(@Nullable Integer maxPodsPerNode) {
            this.maxPodsPerNode = maxPodsPerNode;
            return this;
        }
        @CustomType.Setter
        public Builder secondaryPodRange(@Nullable String secondaryPodRange) {
            this.secondaryPodRange = secondaryPodRange;
            return this;
        }
        @CustomType.Setter
        public Builder subnetwork(@Nullable String subnetwork) {
            this.subnetwork = subnetwork;
            return this;
        }
        public NodePoolNetworkConfigAdditionalPodNetworkConfig build() {
            final var o = new NodePoolNetworkConfigAdditionalPodNetworkConfig();
            o.maxPodsPerNode = maxPodsPerNode;
            o.secondaryPodRange = secondaryPodRange;
            o.subnetwork = subnetwork;
            return o;
        }
    }
}
