com.pulumi.azurenative.datamigration.outputs.MongoDbShardKeyInfoResponse 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.
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.azurenative.datamigration.outputs;
import com.pulumi.azurenative.datamigration.outputs.MongoDbShardKeyFieldResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
@CustomType
public final class MongoDbShardKeyInfoResponse {
/**
* @return The fields within the shard key
*
*/
private List fields;
/**
* @return Whether the shard key is unique
*
*/
private Boolean isUnique;
private MongoDbShardKeyInfoResponse() {}
/**
* @return The fields within the shard key
*
*/
public List fields() {
return this.fields;
}
/**
* @return Whether the shard key is unique
*
*/
public Boolean isUnique() {
return this.isUnique;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MongoDbShardKeyInfoResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List fields;
private Boolean isUnique;
public Builder() {}
public Builder(MongoDbShardKeyInfoResponse defaults) {
Objects.requireNonNull(defaults);
this.fields = defaults.fields;
this.isUnique = defaults.isUnique;
}
@CustomType.Setter
public Builder fields(List fields) {
if (fields == null) {
throw new MissingRequiredPropertyException("MongoDbShardKeyInfoResponse", "fields");
}
this.fields = fields;
return this;
}
public Builder fields(MongoDbShardKeyFieldResponse... fields) {
return fields(List.of(fields));
}
@CustomType.Setter
public Builder isUnique(Boolean isUnique) {
if (isUnique == null) {
throw new MissingRequiredPropertyException("MongoDbShardKeyInfoResponse", "isUnique");
}
this.isUnique = isUnique;
return this;
}
public MongoDbShardKeyInfoResponse build() {
final var _resultValue = new MongoDbShardKeyInfoResponse();
_resultValue.fields = fields;
_resultValue.isUnique = isUnique;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy