public SearchConfig build()

in DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/SearchConfig.java [110:137]


    public SearchConfig build() {
      if (Objects.isNull(this.versions())) {
        throw new IllegalArgumentException(
          "Missing value for required field `versions`"
        );
      }
      if (Objects.nonNull(this.versions()) && this.versions().size() < 1) {
        throw new IllegalArgumentException(
          "The size of `versions` must be greater than or equal to 1"
        );
      }
      if (Objects.nonNull(this.versions()) && this.versions().size() > 1) {
        throw new IllegalArgumentException(
          "The size of `versions` must be less than or equal to 1"
        );
      }
      if (!this._writeVersionSet) {
        throw new IllegalArgumentException(
          "Missing value for required field `writeVersion`"
        );
      }
      if (this._writeVersionSet && this.writeVersion() < 1) {
        throw new IllegalArgumentException(
          "`writeVersion` must be greater than or equal to 1"
        );
      }
      return new SearchConfig(this);
    }