Class AddAttributeRequest.Builder
Object
Builder
- Enclosing class:
AddAttributeRequest
-
Method Summary
Modifier and TypeMethodDescriptionRequired. The ID of the asset this attribute should belong to.build()but()Deprecated.This method will be removed in the future.toString()The ID of the attribute type for the new attribute.typePublicId(String typePublicId) The public ID of the attribute type for the new attribute.Required. The value of this attribute.
-
Method Details
-
but
Deprecated.This method will be removed in the future. Please, useAddAttributeRequest.builder()Clone method for this Builder. -
assetId
Required. The ID of the asset this attribute should belong to.- Returns:
this.
-
typeId
The ID of the attribute type for the new attribute.- Returns:
this.
-
typePublicId
The public ID of the attribute type for the new attribute.- Returns:
this.
-
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:DoubleorString - kind:
ScriptAttribute-> value Class:String - kind:
SingleValueListAttribute-> value Class:String - kind:
DateAttribute-> value class:LongorString - kind:
StringAttribute-> value class:String - kind:
BooleanAttribute-> value class:BooleanorString - kind:
MultiValueListAttribute-> value class:ListofString
- Returns:
this.
- kind:
-
build
-
toString
-