in DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/CompoundBeacon.java [211:250]
public CompoundBeacon build() {
if (Objects.isNull(this.name())) {
throw new IllegalArgumentException(
"Missing value for required field `name`"
);
}
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.nonNull(this.encrypted()) && this.encrypted().size() < 1) {
throw new IllegalArgumentException(
"The size of `encrypted` must be greater than or equal to 1"
);
}
if (Objects.nonNull(this.signed()) && this.signed().size() < 1) {
throw new IllegalArgumentException(
"The size of `signed` must be greater than or equal to 1"
);
}
if (
Objects.nonNull(this.constructors()) && this.constructors().size() < 1
) {
throw new IllegalArgumentException(
"The size of `constructors` must be greater than or equal to 1"
);
}
return new CompoundBeacon(this);
}