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

com.pulumi.aws.ecr.outputs.ReplicationConfigurationReplicationConfiguration Maven / Gradle / Ivy

Go to download

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

The 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.ecr.outputs;

import com.pulumi.aws.ecr.outputs.ReplicationConfigurationReplicationConfigurationRule;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;

@CustomType
public final class ReplicationConfigurationReplicationConfiguration {
    /**
     * @return The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
     * 
     */
    private List rules;

    private ReplicationConfigurationReplicationConfiguration() {}
    /**
     * @return The replication rules for a replication configuration. A maximum of 10 are allowed per `replication_configuration`. See Rule
     * 
     */
    public List rules() {
        return this.rules;
    }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy