Class AddAttributeRequest.Builder
- Object
-
- Builder
-
- Enclosing class:
- AddAttributeRequest
public static final class AddAttributeRequest.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AddAttributeRequest.Builder
assetId(@NotNull 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(@NotNull UUID typeId)
Required. The ID of the attribute type for the new attribute.AddAttributeRequest.Builder
value(@NotNull Object value)
Required. The value of this attribute.
-
-
-
Method Detail
-
but
@Deprecated public AddAttributeRequest.Builder but()
Deprecated.This method will be removed in the future. Please, useAddAttributeRequest.builder()
Clone method for this Builder.
-
assetId
public AddAttributeRequest.Builder assetId(@NotNull @NotNull UUID assetId)
Required. The ID of the asset this attribute should belong to.- Returns:
this
.
-
typeId
public AddAttributeRequest.Builder typeId(@NotNull @NotNull UUID typeId)
Required. The ID of the attribute type for the new attribute.- Returns:
this
.
-
value
public AddAttributeRequest.Builder value(@NotNull @NotNull 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
orString
- kind:
ScriptAttribute
-> value Class:String
- kind:
SingleValueListAttribute
-> value Class:String
- kind:
DateAttribute
-> value class:Long
orString
- kind:
StringAttribute
-> value class:String
- kind:
BooleanAttribute
-> value class:Boolean
orString
- kind:
MultiValueListAttribute
-> value class:List
ofString
- Returns:
this
.
- kind:
-
build
public AddAttributeRequest build()
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-