com.pulumi.aws.dynamodb.outputs.GetTableGlobalSecondaryIndex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.dynamodb.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetTableGlobalSecondaryIndex {
private String hashKey;
/**
* @return Name of the DynamoDB table.
*
*/
private String name;
private List nonKeyAttributes;
private String projectionType;
private String rangeKey;
private Integer readCapacity;
private Integer writeCapacity;
private GetTableGlobalSecondaryIndex() {}
public String hashKey() {
return this.hashKey;
}
/**
* @return Name of the DynamoDB table.
*
*/
public String name() {
return this.name;
}
public List nonKeyAttributes() {
return this.nonKeyAttributes;
}
public String projectionType() {
return this.projectionType;
}
public String rangeKey() {
return this.rangeKey;
}
public Integer readCapacity() {
return this.readCapacity;
}
public Integer writeCapacity() {
return this.writeCapacity;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetTableGlobalSecondaryIndex defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String hashKey;
private String name;
private List nonKeyAttributes;
private String projectionType;
private String rangeKey;
private Integer readCapacity;
private Integer writeCapacity;
public Builder() {}
public Builder(GetTableGlobalSecondaryIndex defaults) {
Objects.requireNonNull(defaults);
this.hashKey = defaults.hashKey;
this.name = defaults.name;
this.nonKeyAttributes = defaults.nonKeyAttributes;
this.projectionType = defaults.projectionType;
this.rangeKey = defaults.rangeKey;
this.readCapacity = defaults.readCapacity;
this.writeCapacity = defaults.writeCapacity;
}
@CustomType.Setter
public Builder hashKey(String hashKey) {
if (hashKey == null) {
throw new MissingRequiredPropertyException("GetTableGlobalSecondaryIndex", "hashKey");
}
this.hashKey = hashKey;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetTableGlobalSecondaryIndex", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder nonKeyAttributes(List nonKeyAttributes) {
if (nonKeyAttributes == null) {
throw new MissingRequiredPropertyException("GetTableGlobalSecondaryIndex", "nonKeyAttributes");
}
this.nonKeyAttributes = nonKeyAttributes;
return this;
}
public Builder nonKeyAttributes(String... nonKeyAttributes) {
return nonKeyAttributes(List.of(nonKeyAttributes));
}
@CustomType.Setter
public Builder projectionType(String projectionType) {
if (projectionType == null) {
throw new MissingRequiredPropertyException("GetTableGlobalSecondaryIndex", "projectionType");
}
this.projectionType = projectionType;
return this;
}
@CustomType.Setter
public Builder rangeKey(String rangeKey) {
if (rangeKey == null) {
throw new MissingRequiredPropertyException("GetTableGlobalSecondaryIndex", "rangeKey");
}
this.rangeKey = rangeKey;
return this;
}
@CustomType.Setter
public Builder readCapacity(Integer readCapacity) {
if (readCapacity == null) {
throw new MissingRequiredPropertyException("GetTableGlobalSecondaryIndex", "readCapacity");
}
this.readCapacity = readCapacity;
return this;
}
@CustomType.Setter
public Builder writeCapacity(Integer writeCapacity) {
if (writeCapacity == null) {
throw new MissingRequiredPropertyException("GetTableGlobalSecondaryIndex", "writeCapacity");
}
this.writeCapacity = writeCapacity;
return this;
}
public GetTableGlobalSecondaryIndex build() {
final var _resultValue = new GetTableGlobalSecondaryIndex();
_resultValue.hashKey = hashKey;
_resultValue.name = name;
_resultValue.nonKeyAttributes = nonKeyAttributes;
_resultValue.projectionType = projectionType;
_resultValue.rangeKey = rangeKey;
_resultValue.readCapacity = readCapacity;
_resultValue.writeCapacity = writeCapacity;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy