Class ResourcesRepresentation
- java.lang.Object
-
- com.cumulocity.rest.representation.BaseResourceRepresentation
-
- com.cumulocity.rest.representation.AbstractExtensibleRepresentation
-
- com.cumulocity.rest.representation.application.microservice.ResourcesRepresentation
-
- All Implemented Interfaces:
ResourceRepresentation,org.svenson.DynamicProperties
public class ResourcesRepresentation extends AbstractExtensibleRepresentation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourcesRepresentation.ResourcesRepresentationBuilder
-
Constructor Summary
Constructors Constructor Description ResourcesRepresentation()ResourcesRepresentation(String cpu, String memory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourcesRepresentation.ResourcesRepresentationBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetCpu()StringgetMemory()inthashCode()voidsetCpu(String cpu)voidsetMemory(String memory)StringtoString()-
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
-
-
-
-
Method Detail
-
builder
public static ResourcesRepresentation.ResourcesRepresentationBuilder builder()
-
setCpu
public void setCpu(String cpu)
-
setMemory
public void setMemory(String memory)
-
canEqual
protected boolean canEqual(Object other)
-
toString
public String toString()
- Overrides:
toStringin classBaseResourceRepresentation
-
getCpu
@JSONProperty(ignoreIfNull=true) public String getCpu()
-
getMemory
@JSONProperty(ignoreIfNull=true) public String getMemory()
-
-