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 class
ResourcesRepresentation.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.ResourcesRepresentationBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getCpu()
String
getMemory()
int
hashCode()
void
setCpu(String cpu)
void
setMemory(String memory)
String
toString()
-
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:
toString
in classBaseResourceRepresentation
-
getCpu
@JSONProperty(ignoreIfNull=true) public String getCpu()
-
getMemory
@JSONProperty(ignoreIfNull=true) public String getMemory()
-
-