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

com.pulumi.aws.s3.outputs.BucketV2ReplicationConfiguration 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.outputs;

import com.pulumi.aws.s3.outputs.BucketV2ReplicationConfigurationRule;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class BucketV2ReplicationConfiguration {
    /**
     * @return ARN of the IAM role for Amazon S3 to assume when replicating the objects.
     * 
     */
    private String role;
    /**
     * @return Specifies the rules managing the replication (documented below).
     * 
     */
    private List rules;

    private BucketV2ReplicationConfiguration() {}
    /**
     * @return ARN of the IAM role for Amazon S3 to assume when replicating the objects.
     * 
     */
    public String role() {
        return this.role;
    }
    /**
     * @return Specifies the rules managing the replication (documented below).
     * 
     */
    public List rules() {
        return this.rules;
    }

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

    public static Builder builder(BucketV2ReplicationConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String role;
        private List rules;
        public Builder() {}
        public Builder(BucketV2ReplicationConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.role = defaults.role;
    	      this.rules = defaults.rules;
        }

        @CustomType.Setter
        public Builder role(String role) {
            if (role == null) {
              throw new MissingRequiredPropertyException("BucketV2ReplicationConfiguration", "role");
            }
            this.role = role;
            return this;
        }
        @CustomType.Setter
        public Builder rules(List rules) {
            if (rules == null) {
              throw new MissingRequiredPropertyException("BucketV2ReplicationConfiguration", "rules");
            }
            this.rules = rules;
            return this;
        }
        public Builder rules(BucketV2ReplicationConfigurationRule... rules) {
            return rules(List.of(rules));
        }
        public BucketV2ReplicationConfiguration build() {
            final var _resultValue = new BucketV2ReplicationConfiguration();
            _resultValue.role = role;
            _resultValue.rules = rules;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy