com.pulumi.azure.cosmosdb.outputs.CassandraTableSchemaPartitionKey Maven / Gradle / Ivy
// *** 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.azure.cosmosdb.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class CassandraTableSchemaPartitionKey {
/**
* @return Name of the column to partition by.
*
*/
private String name;
private CassandraTableSchemaPartitionKey() {}
/**
* @return Name of the column to partition by.
*
*/
public String name() {
return this.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CassandraTableSchemaPartitionKey defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
public Builder() {}
public Builder(CassandraTableSchemaPartitionKey defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("CassandraTableSchemaPartitionKey", "name");
}
this.name = name;
return this;
}
public CassandraTableSchemaPartitionKey build() {
final var _resultValue = new CassandraTableSchemaPartitionKey();
_resultValue.name = name;
return _resultValue;
}
}
}