All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.awsconnector.inputs.RoutingRuleArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.awsconnector.inputs.RedirectRuleArgs;
import com.pulumi.azurenative.awsconnector.inputs.RoutingRuleConditionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of RoutingRule
 * 
 */
public final class RoutingRuleArgs extends com.pulumi.resources.ResourceArgs {

    public static final RoutingRuleArgs Empty = new RoutingRuleArgs();

    /**
     * Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return. Specifies how requests are redirected. In the event of an error, you can specify a different error code to return.
     * 
     */
    @Import(name="redirectRule")
    private @Nullable Output redirectRule;

    /**
     * @return Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return. Specifies how requests are redirected. In the event of an error, you can specify a different error code to return.
     * 
     */
    public Optional> redirectRule() {
        return Optional.ofNullable(this.redirectRule);
    }

    /**
     * A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the ``/docs`` folder, redirect to the ``/documents`` folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error. A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the ``/docs`` folder, redirect to the ``/documents`` folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.
     * 
     */
    @Import(name="routingRuleCondition")
    private @Nullable Output routingRuleCondition;

    /**
     * @return A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the ``/docs`` folder, redirect to the ``/documents`` folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error. A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the ``/docs`` folder, redirect to the ``/documents`` folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.
     * 
     */
    public Optional> routingRuleCondition() {
        return Optional.ofNullable(this.routingRuleCondition);
    }

    private RoutingRuleArgs() {}

    private RoutingRuleArgs(RoutingRuleArgs $) {
        this.redirectRule = $.redirectRule;
        this.routingRuleCondition = $.routingRuleCondition;
    }

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

    public static final class Builder {
        private RoutingRuleArgs $;

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

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

        /**
         * @param redirectRule Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return. Specifies how requests are redirected. In the event of an error, you can specify a different error code to return.
         * 
         * @return builder
         * 
         */
        public Builder redirectRule(@Nullable Output redirectRule) {
            $.redirectRule = redirectRule;
            return this;
        }

        /**
         * @param redirectRule Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return. Specifies how requests are redirected. In the event of an error, you can specify a different error code to return.
         * 
         * @return builder
         * 
         */
        public Builder redirectRule(RedirectRuleArgs redirectRule) {
            return redirectRule(Output.of(redirectRule));
        }

        /**
         * @param routingRuleCondition A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the ``/docs`` folder, redirect to the ``/documents`` folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error. A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the ``/docs`` folder, redirect to the ``/documents`` folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.
         * 
         * @return builder
         * 
         */
        public Builder routingRuleCondition(@Nullable Output routingRuleCondition) {
            $.routingRuleCondition = routingRuleCondition;
            return this;
        }

        /**
         * @param routingRuleCondition A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the ``/docs`` folder, redirect to the ``/documents`` folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error. A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the ``/docs`` folder, redirect to the ``/documents`` folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.
         * 
         * @return builder
         * 
         */
        public Builder routingRuleCondition(RoutingRuleConditionArgs routingRuleCondition) {
            return routingRuleCondition(Output.of(routingRuleCondition));
        }

        public RoutingRuleArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy