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

com.pulumi.azurenative.documentdb.outputs.UniqueKeyPolicyResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.documentdb.outputs;

import com.pulumi.azurenative.documentdb.outputs.UniqueKeyResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class UniqueKeyPolicyResponse {
    /**
     * @return List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
     * 
     */
    private @Nullable List uniqueKeys;

    private UniqueKeyPolicyResponse() {}
    /**
     * @return List of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
     * 
     */
    public List uniqueKeys() {
        return this.uniqueKeys == null ? List.of() : this.uniqueKeys;
    }

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

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

        @CustomType.Setter
        public Builder uniqueKeys(@Nullable List uniqueKeys) {

            this.uniqueKeys = uniqueKeys;
            return this;
        }
        public Builder uniqueKeys(UniqueKeyResponse... uniqueKeys) {
            return uniqueKeys(List.of(uniqueKeys));
        }
        public UniqueKeyPolicyResponse build() {
            final var _resultValue = new UniqueKeyPolicyResponse();
            _resultValue.uniqueKeys = uniqueKeys;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy