in DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/structuredencryption/model/StructuredDataTerminal.java [79:101]
public StructuredDataTerminal build() {
if (Objects.isNull(this.value())) {
throw new IllegalArgumentException(
"Missing value for required field `value`"
);
}
if (Objects.isNull(this.typeId())) {
throw new IllegalArgumentException(
"Missing value for required field `typeId`"
);
}
if (Objects.nonNull(this.typeId()) && this.typeId().remaining() < 2) {
throw new IllegalArgumentException(
"The size of `typeId` must be greater than or equal to 2"
);
}
if (Objects.nonNull(this.typeId()) && this.typeId().remaining() > 2) {
throw new IllegalArgumentException(
"The size of `typeId` must be less than or equal to 2"
);
}
return new StructuredDataTerminal(this);
}