Class AddAttributeRequest
Object
AddAttributeRequest
- All Implemented Interfaces:
Serializable
The properties of the asset to be added.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AddAttributeRequest.Builder
builder()
protected boolean
boolean
Required. The ID of the asset this attribute should belong to.The ID of the attribute type for the new attribute.The public ID of the attribute type for the new attribute.getValue()
Required. The value of this attribute.int
hashCode()
void
setAssetId
(UUID assetId) Required. The ID of the asset this attribute should belong to.void
The ID of the attribute type for the new attribute.void
setTypePublicId
(String typePublicId) The public ID of the attribute type for the new attribute.void
Required. The value of this attribute.toString()
-
Constructor Details
-
AddAttributeRequest
public AddAttributeRequest()
-
-
Method Details
-
builder
-
getAssetId
Required. The ID of the asset this attribute should belong to. -
getTypeId
The ID of the attribute type for the new attribute. -
getTypePublicId
The public ID of the attribute type for the new attribute. -
getValue
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
- kind:
-
setAssetId
Required. The ID of the asset this attribute should belong to. -
setTypeId
The ID of the attribute type for the new attribute. -
setTypePublicId
The public ID of the attribute type for the new attribute. -
setValue
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
- kind:
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-