public BeaconVersion build()

in DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/BeaconVersion.java [321:386]


    public BeaconVersion build() {
      if (!this._versionSet) {
        throw new IllegalArgumentException(
          "Missing value for required field `version`"
        );
      }
      if (this._versionSet && this.version() < 1) {
        throw new IllegalArgumentException(
          "`version` must be greater than or equal to 1"
        );
      }
      if (Objects.isNull(this.keyStore())) {
        throw new IllegalArgumentException(
          "Missing value for required field `keyStore`"
        );
      }
      if (Objects.isNull(this.keySource())) {
        throw new IllegalArgumentException(
          "Missing value for required field `keySource`"
        );
      }
      if (Objects.isNull(this.standardBeacons())) {
        throw new IllegalArgumentException(
          "Missing value for required field `standardBeacons`"
        );
      }
      if (
        Objects.nonNull(this.standardBeacons()) &&
        this.standardBeacons().size() < 1
      ) {
        throw new IllegalArgumentException(
          "The size of `standardBeacons` must be greater than or equal to 1"
        );
      }
      if (
        Objects.nonNull(this.compoundBeacons()) &&
        this.compoundBeacons().size() < 1
      ) {
        throw new IllegalArgumentException(
          "The size of `compoundBeacons` must be greater than or equal to 1"
        );
      }
      if (
        Objects.nonNull(this.virtualFields()) && this.virtualFields().size() < 1
      ) {
        throw new IllegalArgumentException(
          "The size of `virtualFields` must be greater than or equal to 1"
        );
      }
      if (
        Objects.nonNull(this.encryptedParts()) &&
        this.encryptedParts().size() < 1
      ) {
        throw new IllegalArgumentException(
          "The size of `encryptedParts` must be greater than or equal to 1"
        );
      }
      if (
        Objects.nonNull(this.signedParts()) && this.signedParts().size() < 1
      ) {
        throw new IllegalArgumentException(
          "The size of `signedParts` must be greater than or equal to 1"
        );
      }
      return new BeaconVersion(this);
    }