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

# Class AddAttributeRequest.Builder

Object
Builder

Enclosing class:
  `AddAttributeRequest`

public static final class AddAttributeRequest.Builder extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AddAttributeRequest.Builder`
  `assetId(UUID assetId)`
  Required. The ID of the asset this attribute should belong to.
  `AddAttributeRequest`
  `build()`
  `AddAttributeRequest.Builder`
  `but()`
  Deprecated.
  This method will be removed in the future.
  `String`
  `toString()`
  `AddAttributeRequest.Builder`
  `typeId(UUID typeId)`
  The ID of the attribute type for the new attribute.
  `AddAttributeRequest.Builder`
  `typePublicId(String typePublicId)`
  The public ID of the attribute type for the new attribute.
  `AddAttributeRequest.Builder`
  `value(Object value)`
  Required. The value of this attribute.

  ### Methods inherited from class Object

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

- ## Method Details

  - ### but

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

  - ### assetId

    public AddAttributeRequest.Builder assetId(UUID assetId)
    Required. The ID of the asset this attribute should belong to.
    Returns:
      `this`.

  - ### typeId

    public AddAttributeRequest.Builder typeId(UUID typeId)
    The ID of the attribute type for the new attribute.
    Returns:
      `this`.

  - ### typePublicId

    public AddAttributeRequest.Builder typePublicId(String typePublicId)
    The public ID of the attribute type for the new attribute.
    Returns:
      `this`.

  - ### value

    public AddAttributeRequest.Builder value(Object value)
    Required. The value of this attribute. Expected type of the value depends on the type of the attribute.

    The following list presents type of the value depending on the kind of the attribute.

    - kind: `NumericAttribute` -> value Class: `Double` or `String`
    - kind: `ScriptAttribute` -> value Class: `String`
    - kind: `SingleValueListAttribute` -> value Class: `String`
    - kind: `DateAttribute` -> value class: `Long` or `String`
    - kind: `StringAttribute` -> value class: `String`
    - kind: `BooleanAttribute` -> value class: `Boolean` or `String`
    - kind: `MultiValueListAttribute` -> value class: `List` of `String`
    Returns:
      `this`.

  - ### build

    public AddAttributeRequest build()

  - ### toString

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