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

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

@CustomType
public final class GetRouterNatSubnetwork {
    /**
     * @return Name of the NAT service. The name must be 1-63 characters long and
     * comply with RFC1035.
     * 
     */
    private String name;
    private List<String> secondaryIpRangeNames;
    private List<String> sourceIpRangesToNats;

    private GetRouterNatSubnetwork() {}
    /**
     * @return Name of the NAT service. The name must be 1-63 characters long and
     * comply with RFC1035.
     * 
     */
    public String name() {
        return this.name;
    }
    public List<String> secondaryIpRangeNames() {
        return this.secondaryIpRangeNames;
    }
    public List<String> sourceIpRangesToNats() {
        return this.sourceIpRangesToNats;
    }

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

    public static Builder builder(GetRouterNatSubnetwork defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String name;
        private List<String> secondaryIpRangeNames;
        private List<String> sourceIpRangesToNats;
        public Builder() {}
        public Builder(GetRouterNatSubnetwork defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.secondaryIpRangeNames = defaults.secondaryIpRangeNames;
    	      this.sourceIpRangesToNats = defaults.sourceIpRangesToNats;
        }

        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder secondaryIpRangeNames(List<String> secondaryIpRangeNames) {
            this.secondaryIpRangeNames = Objects.requireNonNull(secondaryIpRangeNames);
            return this;
        }
        public Builder secondaryIpRangeNames(String... secondaryIpRangeNames) {
            return secondaryIpRangeNames(List.of(secondaryIpRangeNames));
        }
        @CustomType.Setter
        public Builder sourceIpRangesToNats(List<String> sourceIpRangesToNats) {
            this.sourceIpRangesToNats = Objects.requireNonNull(sourceIpRangesToNats);
            return this;
        }
        public Builder sourceIpRangesToNats(String... sourceIpRangesToNats) {
            return sourceIpRangesToNats(List.of(sourceIpRangesToNats));
        }
        public GetRouterNatSubnetwork build() {
            final var o = new GetRouterNatSubnetwork();
            o.name = name;
            o.secondaryIpRangeNames = secondaryIpRangeNames;
            o.sourceIpRangesToNats = sourceIpRangesToNats;
            return o;
        }
    }
}
