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

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

@CustomType
public final class ApiKeyRestrictionsServerKeyRestrictions {
    /**
     * @return A list of the caller IP addresses that are allowed to make API calls with this key.
     * 
     */
    private List<String> allowedIps;

    private ApiKeyRestrictionsServerKeyRestrictions() {}
    /**
     * @return A list of the caller IP addresses that are allowed to make API calls with this key.
     * 
     */
    public List<String> allowedIps() {
        return this.allowedIps;
    }

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

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

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