Class InstanceResponse


  • public class InstanceResponse
    extends JsonRepresentable
    The reponse to an InstanceRequest, contains the host ip and an Instance object
         {
             "ip": "8.8.8.8",
             "instance": {
                 "id": "39b8db8f-c071-4aeb-aee3-147c4219688b",
                 "deployment": "exampleDeployment1",
                 "challenge": "hello-world",
                 "host": "embedded"
             }
         }
     
    • Constructor Detail

      • InstanceResponse

        @Contract(pure=true)
        public InstanceResponse​(java.lang.String ip,
                                Instance instance)
        Parameters:
        ip - the ip the instance is on
        instance - the instance details
    • Method Detail

      • getIp

        public java.lang.String getIp()
      • getInstance

        public Instance getInstance()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object