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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterIngressPolicyIngressFromArgs;
import com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterIngressPolicyIngressToArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ServicePerimeterIngressPolicyState extends com.pulumi.resources.ResourceArgs {

    public static final ServicePerimeterIngressPolicyState Empty = new ServicePerimeterIngressPolicyState();

    /**
     * Defines the conditions on the source of a request causing this `IngressPolicy`
     * to apply.
     * Structure is documented below.
     * 
     */
    @Import(name="ingressFrom")
    private @Nullable Output<ServicePerimeterIngressPolicyIngressFromArgs> ingressFrom;

    /**
     * @return Defines the conditions on the source of a request causing this `IngressPolicy`
     * to apply.
     * Structure is documented below.
     * 
     */
    public Optional<Output<ServicePerimeterIngressPolicyIngressFromArgs>> ingressFrom() {
        return Optional.ofNullable(this.ingressFrom);
    }

    /**
     * Defines the conditions on the `ApiOperation` and request destination that cause
     * this `IngressPolicy` to apply.
     * Structure is documented below.
     * 
     */
    @Import(name="ingressTo")
    private @Nullable Output<ServicePerimeterIngressPolicyIngressToArgs> ingressTo;

    /**
     * @return Defines the conditions on the `ApiOperation` and request destination that cause
     * this `IngressPolicy` to apply.
     * Structure is documented below.
     * 
     */
    public Optional<Output<ServicePerimeterIngressPolicyIngressToArgs>> ingressTo() {
        return Optional.ofNullable(this.ingressTo);
    }

    /**
     * The name of the Service Perimeter to add this resource to.
     * 
     * ***
     * 
     */
    @Import(name="perimeter")
    private @Nullable Output<String> perimeter;

    /**
     * @return The name of the Service Perimeter to add this resource to.
     * 
     * ***
     * 
     */
    public Optional<Output<String>> perimeter() {
        return Optional.ofNullable(this.perimeter);
    }

    private ServicePerimeterIngressPolicyState() {}

    private ServicePerimeterIngressPolicyState(ServicePerimeterIngressPolicyState $) {
        this.ingressFrom = $.ingressFrom;
        this.ingressTo = $.ingressTo;
        this.perimeter = $.perimeter;
    }

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

    public static final class Builder {
        private ServicePerimeterIngressPolicyState $;

        public Builder() {
            $ = new ServicePerimeterIngressPolicyState();
        }

        public Builder(ServicePerimeterIngressPolicyState defaults) {
            $ = new ServicePerimeterIngressPolicyState(Objects.requireNonNull(defaults));
        }

        /**
         * @param ingressFrom Defines the conditions on the source of a request causing this `IngressPolicy`
         * to apply.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder ingressFrom(@Nullable Output<ServicePerimeterIngressPolicyIngressFromArgs> ingressFrom) {
            $.ingressFrom = ingressFrom;
            return this;
        }

        /**
         * @param ingressFrom Defines the conditions on the source of a request causing this `IngressPolicy`
         * to apply.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder ingressFrom(ServicePerimeterIngressPolicyIngressFromArgs ingressFrom) {
            return ingressFrom(Output.of(ingressFrom));
        }

        /**
         * @param ingressTo Defines the conditions on the `ApiOperation` and request destination that cause
         * this `IngressPolicy` to apply.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder ingressTo(@Nullable Output<ServicePerimeterIngressPolicyIngressToArgs> ingressTo) {
            $.ingressTo = ingressTo;
            return this;
        }

        /**
         * @param ingressTo Defines the conditions on the `ApiOperation` and request destination that cause
         * this `IngressPolicy` to apply.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder ingressTo(ServicePerimeterIngressPolicyIngressToArgs ingressTo) {
            return ingressTo(Output.of(ingressTo));
        }

        /**
         * @param perimeter The name of the Service Perimeter to add this resource to.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder perimeter(@Nullable Output<String> perimeter) {
            $.perimeter = perimeter;
            return this;
        }

        /**
         * @param perimeter The name of the Service Perimeter to add this resource to.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder perimeter(String perimeter) {
            return perimeter(Output.of(perimeter));
        }

        public ServicePerimeterIngressPolicyState build() {
            return $;
        }
    }

}
