Class InstanceResponse
- java.lang.Object
-
- uk.co.ractf.polaris.api.common.JsonRepresentable
-
- uk.co.ractf.polaris.api.instanceallocation.InstanceResponse
-
public class InstanceResponse extends JsonRepresentable
The reponse to anInstanceRequest, contains the host ip and anInstanceobject{ "ip": "8.8.8.8", "instance": { "id": "39b8db8f-c071-4aeb-aee3-147c4219688b", "deployment": "exampleDeployment1", "challenge": "hello-world", "host": "embedded" } }
-
-
Constructor Summary
Constructors Constructor Description InstanceResponse(java.lang.String ip, Instance instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)InstancegetInstance()java.lang.StringgetIp()inthashCode()-
Methods inherited from class uk.co.ractf.polaris.api.common.JsonRepresentable
parse, toJsonString
-
-
-
-
Constructor Detail
-
InstanceResponse
@Contract(pure=true) public InstanceResponse(java.lang.String ip, Instance instance)- Parameters:
ip- the ip the instance is oninstance- the instance details
-
-
Method Detail
-
getIp
public java.lang.String getIp()
-
getInstance
public Instance getInstance()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-