// *** 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.gcp.storage.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class BucketCustomPlacementConfig {
    /**
     * @return The list of individual regions that comprise a dual-region bucket. See [Cloud Storage bucket locations](https://cloud.google.com/storage/docs/dual-regions#availability) for a list of acceptable regions. **Note**: If any of the data_locations changes, it will [recreate the bucket](https://cloud.google.com/storage/docs/locations#key-concepts).
     * 
     */
    private List<String> dataLocations;

    private BucketCustomPlacementConfig() {}
    /**
     * @return The list of individual regions that comprise a dual-region bucket. See [Cloud Storage bucket locations](https://cloud.google.com/storage/docs/dual-regions#availability) for a list of acceptable regions. **Note**: If any of the data_locations changes, it will [recreate the bucket](https://cloud.google.com/storage/docs/locations#key-concepts).
     * 
     */
    public List<String> dataLocations() {
        return this.dataLocations;
    }

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

    public static Builder builder(BucketCustomPlacementConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<String> dataLocations;
        public Builder() {}
        public Builder(BucketCustomPlacementConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dataLocations = defaults.dataLocations;
        }

        @CustomType.Setter
        public Builder dataLocations(List<String> dataLocations) {
            this.dataLocations = Objects.requireNonNull(dataLocations);
            return this;
        }
        public Builder dataLocations(String... dataLocations) {
            return dataLocations(List.of(dataLocations));
        }
        public BucketCustomPlacementConfig build() {
            final var o = new BucketCustomPlacementConfig();
            o.dataLocations = dataLocations;
            return o;
        }
    }
}
