Class OptionRepresentation
- java.lang.Object
-
- com.cumulocity.rest.representation.BaseResourceRepresentation
-
- com.cumulocity.rest.representation.AbstractExtensibleRepresentation
-
- com.cumulocity.rest.representation.tenant.OptionRepresentation
-
- All Implemented Interfaces:
ResourceRepresentation
,org.svenson.DynamicProperties
public class OptionRepresentation extends AbstractExtensibleRepresentation
-
-
Constructor Summary
Constructors Constructor Description OptionRepresentation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OptionRepresentation
asOptionRepresentation(String category, String key, String value)
boolean
equals(Object obj)
String
getCategory()
String
getKey()
String
getValue()
int
hashCode()
boolean
isFalse()
boolean
isTrue()
void
setCategory(String category)
void
setKey(String key)
void
setValue(String value)
-
Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setProperty
-
Methods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, getSelfDecoded, setSelf, toJSON, toString
-
-
-
-
Method Detail
-
asOptionRepresentation
public static OptionRepresentation asOptionRepresentation(String category, String key, String value)
-
getCategory
@JSONProperty(ignoreIfNull=true) public String getCategory()
-
setCategory
public void setCategory(String category)
-
getKey
@JSONProperty(ignoreIfNull=true) public String getKey()
-
setKey
public void setKey(String key)
-
getValue
@JSONProperty(ignoreIfNull=true) public String getValue()
-
setValue
public void setValue(String value)
-
isTrue
@JSONProperty(ignore=true) public boolean isTrue()
-
isFalse
@JSONProperty(ignore=true) public boolean isFalse()
-
-