com.pulumi.aws.dynamodb.outputs.GetTableLocalSecondaryIndex 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.
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.aws.dynamodb.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetTableLocalSecondaryIndex {
/**
* @return Name of the DynamoDB table.
*
*/
private String name;
private List nonKeyAttributes;
private String projectionType;
private String rangeKey;
private GetTableLocalSecondaryIndex() {}
/**
* @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 static Builder builder() {
return new Builder();
}
public static Builder builder(GetTableLocalSecondaryIndex defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private List nonKeyAttributes;
private String projectionType;
private String rangeKey;
public Builder() {}
public Builder(GetTableLocalSecondaryIndex defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.nonKeyAttributes = defaults.nonKeyAttributes;
this.projectionType = defaults.projectionType;
this.rangeKey = defaults.rangeKey;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetTableLocalSecondaryIndex", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder nonKeyAttributes(List nonKeyAttributes) {
if (nonKeyAttributes == null) {
throw new MissingRequiredPropertyException("GetTableLocalSecondaryIndex", "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("GetTableLocalSecondaryIndex", "projectionType");
}
this.projectionType = projectionType;
return this;
}
@CustomType.Setter
public Builder rangeKey(String rangeKey) {
if (rangeKey == null) {
throw new MissingRequiredPropertyException("GetTableLocalSecondaryIndex", "rangeKey");
}
this.rangeKey = rangeKey;
return this;
}
public GetTableLocalSecondaryIndex build() {
final var _resultValue = new GetTableLocalSecondaryIndex();
_resultValue.name = name;
_resultValue.nonKeyAttributes = nonKeyAttributes;
_resultValue.projectionType = projectionType;
_resultValue.rangeKey = rangeKey;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy