in DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSegments.java [140:167]
public GetSegments build() {
if (Objects.isNull(this.split())) {
throw new IllegalArgumentException(
"Missing value for required field `split`"
);
}
if (Objects.nonNull(this.split()) && this.split().length() < 1) {
throw new IllegalArgumentException(
"The size of `split` must be greater than or equal to 1"
);
}
if (Objects.nonNull(this.split()) && this.split().length() > 1) {
throw new IllegalArgumentException(
"The size of `split` must be less than or equal to 1"
);
}
if (Objects.isNull(this.low())) {
throw new IllegalArgumentException(
"Missing value for required field `low`"
);
}
if (Objects.isNull(this.high())) {
throw new IllegalArgumentException(
"Missing value for required field `high`"
);
}
return new GetSegments(this);
}