Class AddAttributeRequest
- Object
-
- AddAttributeRequest
-
- All Implemented Interfaces:
Serializable
public class AddAttributeRequest extends Object implements Serializable
The properties of the asset to be added.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AddAttributeRequest.Builder
-
Constructor Summary
Constructors Constructor Description AddAttributeRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddAttributeRequest.Builder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
@NotNull UUID
getAssetId()
Required. The ID of the asset this attribute should belong to.@NotNull UUID
getTypeId()
Required. The ID of the attribute type for the new attribute.@NotNull Object
getValue()
Required. The value of this attribute.int
hashCode()
void
setAssetId(@NotNull UUID assetId)
Required. The ID of the asset this attribute should belong to.void
setTypeId(@NotNull UUID typeId)
Required. The ID of the attribute type for the new attribute.void
setValue(@NotNull Object value)
Required. The value of this attribute.String
toString()
-
-
-
Method Detail
-
builder
public static AddAttributeRequest.Builder builder()
-
getAssetId
@NotNull public @NotNull UUID getAssetId()
Required. The ID of the asset this attribute should belong to.
-
getTypeId
@NotNull public @NotNull UUID getTypeId()
Required. The ID of the attribute type for the new attribute.
-
getValue
@NotNull public @NotNull Object 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
public void setAssetId(@NotNull @NotNull UUID assetId)
Required. The ID of the asset this attribute should belong to.
-
setTypeId
public void setTypeId(@NotNull @NotNull UUID typeId)
Required. The ID of the attribute type for the new attribute.
-
setValue
public void setValue(@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
- kind:
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classObject
-
canEqual
protected boolean canEqual(Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-