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

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

@CustomType
public final class ServicePerimeterStatusVpcAccessibleServices {
    /**
     * @return The list of APIs usable within the Service Perimeter.
     * Must be empty unless `enableRestriction` is True.
     * 
     */
    private @Nullable List<String> allowedServices;
    /**
     * @return Whether to restrict API calls within the Service Perimeter to the
     * list of APIs specified in &#39;allowedServices&#39;.
     * 
     */
    private @Nullable Boolean enableRestriction;

    private ServicePerimeterStatusVpcAccessibleServices() {}
    /**
     * @return The list of APIs usable within the Service Perimeter.
     * Must be empty unless `enableRestriction` is True.
     * 
     */
    public List<String> allowedServices() {
        return this.allowedServices == null ? List.of() : this.allowedServices;
    }
    /**
     * @return Whether to restrict API calls within the Service Perimeter to the
     * list of APIs specified in &#39;allowedServices&#39;.
     * 
     */
    public Optional<Boolean> enableRestriction() {
        return Optional.ofNullable(this.enableRestriction);
    }

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

    public static Builder builder(ServicePerimeterStatusVpcAccessibleServices defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<String> allowedServices;
        private @Nullable Boolean enableRestriction;
        public Builder() {}
        public Builder(ServicePerimeterStatusVpcAccessibleServices defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowedServices = defaults.allowedServices;
    	      this.enableRestriction = defaults.enableRestriction;
        }

        @CustomType.Setter
        public Builder allowedServices(@Nullable List<String> allowedServices) {
            this.allowedServices = allowedServices;
            return this;
        }
        public Builder allowedServices(String... allowedServices) {
            return allowedServices(List.of(allowedServices));
        }
        @CustomType.Setter
        public Builder enableRestriction(@Nullable Boolean enableRestriction) {
            this.enableRestriction = enableRestriction;
            return this;
        }
        public ServicePerimeterStatusVpcAccessibleServices build() {
            final var o = new ServicePerimeterStatusVpcAccessibleServices();
            o.allowedServices = allowedServices;
            o.enableRestriction = enableRestriction;
            return o;
        }
    }
}
