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

com.pulumi.aws.s3.inputs.BucketWebsiteConfigurationV2RoutingRuleConditionArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.s3.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 BucketWebsiteConfigurationV2RoutingRuleConditionArgs extends com.pulumi.resources.ResourceArgs {

    public static final BucketWebsiteConfigurationV2RoutingRuleConditionArgs Empty = new BucketWebsiteConfigurationV2RoutingRuleConditionArgs();

    /**
     * HTTP error code when the redirect is applied. If specified with `key_prefix_equals`, then both must be true for the redirect to be applied.
     * 
     */
    @Import(name="httpErrorCodeReturnedEquals")
    private @Nullable Output httpErrorCodeReturnedEquals;

    /**
     * @return HTTP error code when the redirect is applied. If specified with `key_prefix_equals`, then both must be true for the redirect to be applied.
     * 
     */
    public Optional> httpErrorCodeReturnedEquals() {
        return Optional.ofNullable(this.httpErrorCodeReturnedEquals);
    }

    /**
     * Object key name prefix when the redirect is applied. If specified with `http_error_code_returned_equals`, then both must be true for the redirect to be applied.
     * 
     */
    @Import(name="keyPrefixEquals")
    private @Nullable Output keyPrefixEquals;

    /**
     * @return Object key name prefix when the redirect is applied. If specified with `http_error_code_returned_equals`, then both must be true for the redirect to be applied.
     * 
     */
    public Optional> keyPrefixEquals() {
        return Optional.ofNullable(this.keyPrefixEquals);
    }

    private BucketWebsiteConfigurationV2RoutingRuleConditionArgs() {}

    private BucketWebsiteConfigurationV2RoutingRuleConditionArgs(BucketWebsiteConfigurationV2RoutingRuleConditionArgs $) {
        this.httpErrorCodeReturnedEquals = $.httpErrorCodeReturnedEquals;
        this.keyPrefixEquals = $.keyPrefixEquals;
    }

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

    public static final class Builder {
        private BucketWebsiteConfigurationV2RoutingRuleConditionArgs $;

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

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

        /**
         * @param httpErrorCodeReturnedEquals HTTP error code when the redirect is applied. If specified with `key_prefix_equals`, then both must be true for the redirect to be applied.
         * 
         * @return builder
         * 
         */
        public Builder httpErrorCodeReturnedEquals(@Nullable Output httpErrorCodeReturnedEquals) {
            $.httpErrorCodeReturnedEquals = httpErrorCodeReturnedEquals;
            return this;
        }

        /**
         * @param httpErrorCodeReturnedEquals HTTP error code when the redirect is applied. If specified with `key_prefix_equals`, then both must be true for the redirect to be applied.
         * 
         * @return builder
         * 
         */
        public Builder httpErrorCodeReturnedEquals(String httpErrorCodeReturnedEquals) {
            return httpErrorCodeReturnedEquals(Output.of(httpErrorCodeReturnedEquals));
        }

        /**
         * @param keyPrefixEquals Object key name prefix when the redirect is applied. If specified with `http_error_code_returned_equals`, then both must be true for the redirect to be applied.
         * 
         * @return builder
         * 
         */
        public Builder keyPrefixEquals(@Nullable Output keyPrefixEquals) {
            $.keyPrefixEquals = keyPrefixEquals;
            return this;
        }

        /**
         * @param keyPrefixEquals Object key name prefix when the redirect is applied. If specified with `http_error_code_returned_equals`, then both must be true for the redirect to be applied.
         * 
         * @return builder
         * 
         */
        public Builder keyPrefixEquals(String keyPrefixEquals) {
            return keyPrefixEquals(Output.of(keyPrefixEquals));
        }

        public BucketWebsiteConfigurationV2RoutingRuleConditionArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy