in DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/DynamoDbTableEncryptionConfig.java [475:530]
public DynamoDbTableEncryptionConfig build() {
if (Objects.isNull(this.logicalTableName())) {
throw new IllegalArgumentException(
"Missing value for required field `logicalTableName`"
);
}
if (Objects.isNull(this.partitionKeyName())) {
throw new IllegalArgumentException(
"Missing value for required field `partitionKeyName`"
);
}
if (
Objects.nonNull(this.partitionKeyName()) &&
this.partitionKeyName().length() < 1
) {
throw new IllegalArgumentException(
"The size of `partitionKeyName` must be greater than or equal to 1"
);
}
if (
Objects.nonNull(this.partitionKeyName()) &&
this.partitionKeyName().length() > 255
) {
throw new IllegalArgumentException(
"The size of `partitionKeyName` must be less than or equal to 255"
);
}
if (
Objects.nonNull(this.sortKeyName()) && this.sortKeyName().length() < 1
) {
throw new IllegalArgumentException(
"The size of `sortKeyName` must be greater than or equal to 1"
);
}
if (
Objects.nonNull(this.sortKeyName()) && this.sortKeyName().length() > 255
) {
throw new IllegalArgumentException(
"The size of `sortKeyName` must be less than or equal to 255"
);
}
if (Objects.isNull(this.attributeActionsOnEncrypt())) {
throw new IllegalArgumentException(
"Missing value for required field `attributeActionsOnEncrypt`"
);
}
if (
Objects.nonNull(this.allowedUnsignedAttributes()) &&
this.allowedUnsignedAttributes().size() < 1
) {
throw new IllegalArgumentException(
"The size of `allowedUnsignedAttributes` must be greater than or equal to 1"
);
}
return new DynamoDbTableEncryptionConfig(this);
}