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.Builderbuilder()protected booleanbooleanRequired. 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.inthashCode()voidsetAssetId(UUID assetId) Required. The ID of the asset this attribute should belong to.voidThe ID of the attribute type for the new attribute.voidsetTypePublicId(String typePublicId) The public ID of the attribute type for the new attribute.voidRequired. 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: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
- 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: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
- kind:
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-