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

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


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

    public static final RegionUrlMapDefaultRouteActionRequestMirrorPolicyArgs Empty = new RegionUrlMapDefaultRouteActionRequestMirrorPolicyArgs();

    /**
     * The full or partial URL to the RegionBackendService resource being mirrored to.
     * The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map.
     * Serverless NEG backends are not currently supported as a mirrored backend service.
     * 
     */
    @Import(name="backendService")
    private @Nullable Output<String> backendService;

    /**
     * @return The full or partial URL to the RegionBackendService resource being mirrored to.
     * The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map.
     * Serverless NEG backends are not currently supported as a mirrored backend service.
     * 
     */
    public Optional<Output<String>> backendService() {
        return Optional.ofNullable(this.backendService);
    }

    private RegionUrlMapDefaultRouteActionRequestMirrorPolicyArgs() {}

    private RegionUrlMapDefaultRouteActionRequestMirrorPolicyArgs(RegionUrlMapDefaultRouteActionRequestMirrorPolicyArgs $) {
        this.backendService = $.backendService;
    }

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

    public static final class Builder {
        private RegionUrlMapDefaultRouteActionRequestMirrorPolicyArgs $;

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

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

        /**
         * @param backendService The full or partial URL to the RegionBackendService resource being mirrored to.
         * The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map.
         * Serverless NEG backends are not currently supported as a mirrored backend service.
         * 
         * @return builder
         * 
         */
        public Builder backendService(@Nullable Output<String> backendService) {
            $.backendService = backendService;
            return this;
        }

        /**
         * @param backendService The full or partial URL to the RegionBackendService resource being mirrored to.
         * The backend service configured for a mirroring policy must reference backends that are of the same type as the original backend service matched in the URL map.
         * Serverless NEG backends are not currently supported as a mirrored backend service.
         * 
         * @return builder
         * 
         */
        public Builder backendService(String backendService) {
            return backendService(Output.of(backendService));
        }

        public RegionUrlMapDefaultRouteActionRequestMirrorPolicyArgs build() {
            return $;
        }
    }

}
