public StandardBeacon build()

in DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/model/StandardBeacon.java [179:206]


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