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

com.pulumi.azurenative.awsconnector.outputs.RoutingRuleConditionResponse 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.outputs;

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

@CustomType
public final class RoutingRuleConditionResponse {
    /**
     * @return The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied. Required when parent element ``Condition`` is specified and sibling ``KeyPrefixEquals`` is not specified. If both are specified, then both must be true for the redirect to be applied.
     * 
     */
    private @Nullable String httpErrorCodeReturnedEquals;
    /**
     * @return The object key name prefix when the redirect is applied. For example, to redirect requests for ``ExamplePage.html``, the key prefix will be ``ExamplePage.html``. To redirect request for all pages with the prefix ``docs/``, the key prefix will be ``/docs``, which identifies all objects in the docs/ folder. Required when the parent element ``Condition`` is specified and sibling ``HttpErrorCodeReturnedEquals`` is not specified. If both conditions are specified, both must be true for the redirect to be applied.
     * 
     */
    private @Nullable String keyPrefixEquals;

    private RoutingRuleConditionResponse() {}
    /**
     * @return The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied. Required when parent element ``Condition`` is specified and sibling ``KeyPrefixEquals`` is not specified. If both are specified, then both must be true for the redirect to be applied.
     * 
     */
    public Optional httpErrorCodeReturnedEquals() {
        return Optional.ofNullable(this.httpErrorCodeReturnedEquals);
    }
    /**
     * @return The object key name prefix when the redirect is applied. For example, to redirect requests for ``ExamplePage.html``, the key prefix will be ``ExamplePage.html``. To redirect request for all pages with the prefix ``docs/``, the key prefix will be ``/docs``, which identifies all objects in the docs/ folder. Required when the parent element ``Condition`` is specified and sibling ``HttpErrorCodeReturnedEquals`` is not specified. If both conditions are specified, both must be true for the redirect to be applied.
     * 
     */
    public Optional keyPrefixEquals() {
        return Optional.ofNullable(this.keyPrefixEquals);
    }

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

    public static Builder builder(RoutingRuleConditionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String httpErrorCodeReturnedEquals;
        private @Nullable String keyPrefixEquals;
        public Builder() {}
        public Builder(RoutingRuleConditionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.httpErrorCodeReturnedEquals = defaults.httpErrorCodeReturnedEquals;
    	      this.keyPrefixEquals = defaults.keyPrefixEquals;
        }

        @CustomType.Setter
        public Builder httpErrorCodeReturnedEquals(@Nullable String httpErrorCodeReturnedEquals) {

            this.httpErrorCodeReturnedEquals = httpErrorCodeReturnedEquals;
            return this;
        }
        @CustomType.Setter
        public Builder keyPrefixEquals(@Nullable String keyPrefixEquals) {

            this.keyPrefixEquals = keyPrefixEquals;
            return this;
        }
        public RoutingRuleConditionResponse build() {
            final var _resultValue = new RoutingRuleConditionResponse();
            _resultValue.httpErrorCodeReturnedEquals = httpErrorCodeReturnedEquals;
            _resultValue.keyPrefixEquals = keyPrefixEquals;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy