// *** 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.aws.s3.inputs.BucketServerSideEncryptionConfigurationRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;


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

    public static final BucketServerSideEncryptionConfigurationArgs Empty = new BucketServerSideEncryptionConfigurationArgs();

    /**
     * A single object for server-side encryption by default configuration. (documented below)
     * 
     */
    @Import(name="rule", required=true)
    private Output<BucketServerSideEncryptionConfigurationRuleArgs> rule;

    /**
     * @return A single object for server-side encryption by default configuration. (documented below)
     * 
     */
    public Output<BucketServerSideEncryptionConfigurationRuleArgs> rule() {
        return this.rule;
    }

    private BucketServerSideEncryptionConfigurationArgs() {}

    private BucketServerSideEncryptionConfigurationArgs(BucketServerSideEncryptionConfigurationArgs $) {
        this.rule = $.rule;
    }

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

    public static final class Builder {
        private BucketServerSideEncryptionConfigurationArgs $;

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

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

        /**
         * @param rule A single object for server-side encryption by default configuration. (documented below)
         * 
         * @return builder
         * 
         */
        public Builder rule(Output<BucketServerSideEncryptionConfigurationRuleArgs> rule) {
            $.rule = rule;
            return this;
        }

        /**
         * @param rule A single object for server-side encryption by default configuration. (documented below)
         * 
         * @return builder
         * 
         */
        public Builder rule(BucketServerSideEncryptionConfigurationRuleArgs rule) {
            return rule(Output.of(rule));
        }

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

}
