Class AddAttributeRequest
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.AddAttributeRequest
-
- All Implemented Interfaces:
CartVersionedRequest
,Serializable
public class AddAttributeRequest extends CartModifyingRequest implements Serializable
DTO for a request to add a Cart attribute.- Author:
- Nathan Moore (nathandmoore)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddAttributeRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getKey()
The attribute's key.Object
getValue()
The attribute's value.int
hashCode()
void
setKey(String key)
The attribute's key.void
setValue(Object value)
The attribute's value.String
toString()
-
Methods inherited from class com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
getCartVersion, getVersion, setCartVersion, setVersion
-
-
-
-
Method Detail
-
getKey
public String getKey()
The attribute's key.- Returns:
- The attribute's key.
-
getValue
public Object getValue()
The attribute's value.- Returns:
- The attribute's value.
-
setKey
public void setKey(String key)
The attribute's key.- Parameters:
key
- The attribute's key.
-
setValue
public void setValue(Object value)
The attribute's value.- Parameters:
value
- The attribute's value.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classCartModifyingRequest
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classCartModifyingRequest
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCartModifyingRequest
-
toString
public String toString()
- Overrides:
toString
in classCartModifyingRequest
-
-