public GetSegment build()

in DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/GetSegment.java [105:127]


    public GetSegment 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.index())) {
        throw new IllegalArgumentException(
          "Missing value for required field `index`"
        );
      }
      return new GetSegment(this);
    }