com.pulumi.azurenative.documentdb.outputs.UniqueKeyPolicyResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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