package com.hubspot.baragon.models;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Objects;

@JsonIgnoreProperties( ignoreUnknown = true )
public class BaragonResponse {
  private final String requestId;
  private final RequestState state;

  @JsonCreator
  public BaragonResponse(@JsonProperty("requestId") String requestId, @JsonProperty("state") RequestState state) {
    this.requestId = requestId;
    this.state = state;
  }

  public String getRequestId() {
    return requestId;
  }

  public RequestState getState() {
    return state;
  }

  @Override
  public String toString() {
    return Objects.toStringHelper(this)
        .add("requestId", requestId)
        .add("state", state)
        .toString();
  }
}

@@ -331,33 +331,45 @@
 te final String 
-r
+loadBalancerR
 equestId;%0A  priv
@@ -387,25 +387,37 @@
 equestState 
-s
+loadBalancerS
 tate;%0A%0A  @Js
@@ -466,17 +466,29 @@
 operty(%22
-r
+loadBalancerR
 equestId
@@ -497,17 +497,29 @@
  String 
-r
+loadBalancerR
 equestId
@@ -535,17 +535,29 @@
 operty(%22
-s
+loadBalancerS
 tate%22) R
@@ -568,17 +568,29 @@
 stState 
-s
+loadBalancerS
 tate) %7B%0A
@@ -602,49 +602,97 @@
 his.
-requestId = requestId;%0A    this.state = s
+loadBalancerRequestId = loadBalancerRequestId;%0A    this.loadBalancerState = loadBalancerS
 tate
@@ -717,16 +717,28 @@
 ring get
+LoadBalancer
 RequestI
@@ -754,17 +754,29 @@
  return 
-r
+loadBalancerR
 equestId
@@ -807,16 +807,28 @@
 tate get
+LoadBalancer
 State() 
@@ -840,17 +840,29 @@
  return 
-s
+loadBalancerS
 tate;%0A  
@@ -963,54 +963,102 @@
 dd(%22
-requestId%22, requestId)%0A        .add(%22state%22, s
+loadBalancerRequestId%22, loadBalancerRequestId)%0A        .add(%22loadBalancerState%22, loadBalancerS
 tate

rename response fields to match singularity