Package com.collibra.dgc.core.api.dto.instance.rating

# Class AddRatingRequest.Builder

Object
Builder

Enclosing class:
  `AddRatingRequest`

public static class AddRatingRequest.Builder extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AddRatingRequest.Builder`
  `assetId(UUID assetId)`
  Required. The ID of the asset to which rating will be assigned.
  `AddRatingRequest`
  `build()`
  `AddRatingRequest.Builder`
  `but()`
  Deprecated.
  This method will be removed in the future.
  `AddRatingRequest.Builder`
  `rating(Double rating)`
  Required. The rating value of the new rating.
  `AddRatingRequest.Builder`
  `review(String review)`
  The text field which could be optionally added with rating.
  `String`
  `toString()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Method Details

  - ### but

    @Deprecated public AddRatingRequest.Builder but()
    Deprecated.
    This method will be removed in the future. Please, use `AddRatingRequest.builder()`
    Clone method for this Builder.

  - ### rating

    public AddRatingRequest.Builder rating(Double rating)
    Required. The rating value of the new rating. Allowed values are {0.2, 0.4, 0.6, 0.8, 1.0} (e.g., 0.2 for 1 star, 1.0 for 5 stars).
    Returns:
      `this`.

  - ### review

    public AddRatingRequest.Builder review(String review)
    The text field which could be optionally added with rating.
    Returns:
      `this`.

  - ### assetId

    public AddRatingRequest.Builder assetId(UUID assetId)
    Required. The ID of the asset to which rating will be assigned.
    Returns:
      `this`.

  - ### build

    public AddRatingRequest build()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`