// *** 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.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BucketLifecycleConfigurationV2RuleFilterAndArgs Empty = new BucketLifecycleConfigurationV2RuleFilterAndArgs();

    /**
     * Minimum object size to which the rule applies. Value must be at least `0` if specified.
     * 
     */
    @Import(name="objectSizeGreaterThan")
    private @Nullable Output<Integer> objectSizeGreaterThan;

    /**
     * @return Minimum object size to which the rule applies. Value must be at least `0` if specified.
     * 
     */
    public Optional<Output<Integer>> objectSizeGreaterThan() {
        return Optional.ofNullable(this.objectSizeGreaterThan);
    }

    /**
     * Maximum object size to which the rule applies. Value must be at least `1` if specified.
     * 
     */
    @Import(name="objectSizeLessThan")
    private @Nullable Output<Integer> objectSizeLessThan;

    /**
     * @return Maximum object size to which the rule applies. Value must be at least `1` if specified.
     * 
     */
    public Optional<Output<Integer>> objectSizeLessThan() {
        return Optional.ofNullable(this.objectSizeLessThan);
    }

    /**
     * Prefix identifying one or more objects to which the rule applies.
     * 
     */
    @Import(name="prefix")
    private @Nullable Output<String> prefix;

    /**
     * @return Prefix identifying one or more objects to which the rule applies.
     * 
     */
    public Optional<Output<String>> prefix() {
        return Optional.ofNullable(this.prefix);
    }

    /**
     * Key-value map of resource tags. All of these tags must exist in the object&#39;s tag set in order for the rule to apply.
     * 
     */
    @Import(name="tags")
    private @Nullable Output<Map<String,String>> tags;

    /**
     * @return Key-value map of resource tags. All of these tags must exist in the object&#39;s tag set in order for the rule to apply.
     * 
     */
    public Optional<Output<Map<String,String>>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private BucketLifecycleConfigurationV2RuleFilterAndArgs() {}

    private BucketLifecycleConfigurationV2RuleFilterAndArgs(BucketLifecycleConfigurationV2RuleFilterAndArgs $) {
        this.objectSizeGreaterThan = $.objectSizeGreaterThan;
        this.objectSizeLessThan = $.objectSizeLessThan;
        this.prefix = $.prefix;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private BucketLifecycleConfigurationV2RuleFilterAndArgs $;

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

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

        /**
         * @param objectSizeGreaterThan Minimum object size to which the rule applies. Value must be at least `0` if specified.
         * 
         * @return builder
         * 
         */
        public Builder objectSizeGreaterThan(@Nullable Output<Integer> objectSizeGreaterThan) {
            $.objectSizeGreaterThan = objectSizeGreaterThan;
            return this;
        }

        /**
         * @param objectSizeGreaterThan Minimum object size to which the rule applies. Value must be at least `0` if specified.
         * 
         * @return builder
         * 
         */
        public Builder objectSizeGreaterThan(Integer objectSizeGreaterThan) {
            return objectSizeGreaterThan(Output.of(objectSizeGreaterThan));
        }

        /**
         * @param objectSizeLessThan Maximum object size to which the rule applies. Value must be at least `1` if specified.
         * 
         * @return builder
         * 
         */
        public Builder objectSizeLessThan(@Nullable Output<Integer> objectSizeLessThan) {
            $.objectSizeLessThan = objectSizeLessThan;
            return this;
        }

        /**
         * @param objectSizeLessThan Maximum object size to which the rule applies. Value must be at least `1` if specified.
         * 
         * @return builder
         * 
         */
        public Builder objectSizeLessThan(Integer objectSizeLessThan) {
            return objectSizeLessThan(Output.of(objectSizeLessThan));
        }

        /**
         * @param prefix Prefix identifying one or more objects to which the rule applies.
         * 
         * @return builder
         * 
         */
        public Builder prefix(@Nullable Output<String> prefix) {
            $.prefix = prefix;
            return this;
        }

        /**
         * @param prefix Prefix identifying one or more objects to which the rule applies.
         * 
         * @return builder
         * 
         */
        public Builder prefix(String prefix) {
            return prefix(Output.of(prefix));
        }

        /**
         * @param tags Key-value map of resource tags. All of these tags must exist in the object&#39;s tag set in order for the rule to apply.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output<Map<String,String>> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value map of resource tags. All of these tags must exist in the object&#39;s tag set in order for the rule to apply.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map<String,String> tags) {
            return tags(Output.of(tags));
        }

        public BucketLifecycleConfigurationV2RuleFilterAndArgs build() {
            return $;
        }
    }

}
