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

import com.pulumi.aws.cloudwatch.inputs.EventEndpointRoutingConfigFailoverConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;


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

    public static final EventEndpointRoutingConfigArgs Empty = new EventEndpointRoutingConfigArgs();

    /**
     * Parameters used for failover. This includes what triggers failover and what happens when it&#39;s triggered. Documented below.
     * 
     */
    @Import(name="failoverConfig", required=true)
    private Output<EventEndpointRoutingConfigFailoverConfigArgs> failoverConfig;

    /**
     * @return Parameters used for failover. This includes what triggers failover and what happens when it&#39;s triggered. Documented below.
     * 
     */
    public Output<EventEndpointRoutingConfigFailoverConfigArgs> failoverConfig() {
        return this.failoverConfig;
    }

    private EventEndpointRoutingConfigArgs() {}

    private EventEndpointRoutingConfigArgs(EventEndpointRoutingConfigArgs $) {
        this.failoverConfig = $.failoverConfig;
    }

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

    public static final class Builder {
        private EventEndpointRoutingConfigArgs $;

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

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

        /**
         * @param failoverConfig Parameters used for failover. This includes what triggers failover and what happens when it&#39;s triggered. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder failoverConfig(Output<EventEndpointRoutingConfigFailoverConfigArgs> failoverConfig) {
            $.failoverConfig = failoverConfig;
            return this;
        }

        /**
         * @param failoverConfig Parameters used for failover. This includes what triggers failover and what happens when it&#39;s triggered. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder failoverConfig(EventEndpointRoutingConfigFailoverConfigArgs failoverConfig) {
            return failoverConfig(Output.of(failoverConfig));
        }

        public EventEndpointRoutingConfigArgs build() {
            $.failoverConfig = Objects.requireNonNull($.failoverConfig, "expected parameter 'failoverConfig' to be non-null");
            return $;
        }
    }

}
