@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssigning() == null) ? 0 : getAssigning().hashCode()); hashCode = prime * hashCode + ((getBooting() == null) ? 0 : getBooting().hashCode()); hashCode = prime * hashCode + ((getConnectionLost() == null) ? 0 : getConnectionLost().hashCode()); hashCode = prime * hashCode + ((getDeregistering() == null) ? 0 : getDeregistering().hashCode()); hashCode = prime * hashCode + ((getOnline() == null) ? 0 : getOnline().hashCode()); hashCode = prime * hashCode + ((getPending() == null) ? 0 : getPending().hashCode()); hashCode = prime * hashCode + ((getRebooting() == null) ? 0 : getRebooting().hashCode()); hashCode = prime * hashCode + ((getRegistered() == null) ? 0 : getRegistered().hashCode()); hashCode = prime * hashCode + ((getRegistering() == null) ? 0 : getRegistering().hashCode()); hashCode = prime * hashCode + ((getRequested() == null) ? 0 : getRequested().hashCode()); hashCode = prime * hashCode + ((getRunningSetup() == null) ? 0 : getRunningSetup().hashCode()); hashCode = prime * hashCode + ((getSetupFailed() == null) ? 0 : getSetupFailed().hashCode()); hashCode = prime * hashCode + ((getShuttingDown() == null) ? 0 : getShuttingDown().hashCode()); hashCode = prime * hashCode + ((getStartFailed() == null) ? 0 : getStartFailed().hashCode()); hashCode = prime * hashCode + ((getStopFailed() == null) ? 0 : getStopFailed().hashCode()); hashCode = prime * hashCode + ((getStopped() == null) ? 0 : getStopped().hashCode()); hashCode = prime * hashCode + ((getStopping() == null) ? 0 : getStopping().hashCode()); hashCode = prime * hashCode + ((getTerminated() == null) ? 0 : getTerminated().hashCode()); hashCode = prime * hashCode + ((getTerminating() == null) ? 0 : getTerminating().hashCode()); hashCode = prime * hashCode + ((getUnassigning() == null) ? 0 : getUnassigning().hashCode()); return hashCode; }
public InstancesCount unmarshall(JsonUnmarshallerContext context) throws Exception { InstancesCount instancesCount = new InstancesCount(); if (context.testExpression("Assigning", targetDepth)) { context.nextToken(); instancesCount.setAssigning(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setBooting(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setConnectionLost(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setDeregistering(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setOnline(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setPending(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setRebooting(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setRegistered(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setRegistering(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setRequested(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setRunningSetup(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setSetupFailed(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setShuttingDown(context.getUnmarshaller(Integer.class).unmarshall(context));
if (other.getInstancesCount() == null ^ this.getInstancesCount() == null) return false; if (other.getInstancesCount() != null && other.getInstancesCount().equals(this.getInstancesCount()) == false) return false; return true;
public InstancesCount unmarshall(JsonUnmarshallerContext context) throws Exception { InstancesCount instancesCount = new InstancesCount(); if (context.testExpression("Assigning", targetDepth)) { context.nextToken(); instancesCount.setAssigning(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setBooting(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setConnectionLost(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setDeregistering(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setOnline(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setPending(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setRebooting(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setRegistered(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setRegistering(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setRequested(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setRunningSetup(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setSetupFailed(context.getUnmarshaller(Integer.class).unmarshall(context)); instancesCount.setShuttingDown(context.getUnmarshaller(Integer.class).unmarshall(context));
if (other.getInstancesCount() == null ^ this.getInstancesCount() == null) return false; if (other.getInstancesCount() != null && other.getInstancesCount().equals(this.getInstancesCount()) == false) return false; return true;
return false; InstancesCount other = (InstancesCount) obj; if (other.getAssigning() == null ^ this.getAssigning() == null) return false; if (other.getAssigning() != null && other.getAssigning().equals(this.getAssigning()) == false) return false; if (other.getBooting() == null ^ this.getBooting() == null) return false; if (other.getBooting() != null && other.getBooting().equals(this.getBooting()) == false) return false; if (other.getConnectionLost() == null ^ this.getConnectionLost() == null) return false; if (other.getConnectionLost() != null && other.getConnectionLost().equals(this.getConnectionLost()) == false) return false; if (other.getDeregistering() == null ^ this.getDeregistering() == null) return false; if (other.getDeregistering() != null && other.getDeregistering().equals(this.getDeregistering()) == false) return false; if (other.getOnline() == null ^ this.getOnline() == null) return false; if (other.getOnline() != null && other.getOnline().equals(this.getOnline()) == false) return false; if (other.getPending() == null ^ this.getPending() == null) return false; if (other.getPending() != null && other.getPending().equals(this.getPending()) == false) return false; if (other.getRebooting() == null ^ this.getRebooting() == null) return false; if (other.getRebooting() != null && other.getRebooting().equals(this.getRebooting()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAssigning() != null) sb.append("Assigning: ").append(getAssigning()).append(","); if (getBooting() != null) sb.append("Booting: ").append(getBooting()).append(","); if (getConnectionLost() != null) sb.append("ConnectionLost: ").append(getConnectionLost()).append(","); if (getDeregistering() != null) sb.append("Deregistering: ").append(getDeregistering()).append(","); if (getOnline() != null) sb.append("Online: ").append(getOnline()).append(","); if (getPending() != null) sb.append("Pending: ").append(getPending()).append(","); if (getRebooting() != null) sb.append("Rebooting: ").append(getRebooting()).append(","); if (getRegistered() != null) sb.append("Registered: ").append(getRegistered()).append(","); if (getRegistering() != null) sb.append("Registering: ").append(getRegistering()).append(","); if (getRequested() != null) sb.append("Requested: ").append(getRequested()).append(","); if (getRunningSetup() != null) sb.append("RunningSetup: ").append(getRunningSetup()).append(","); if (getSetupFailed() != null) sb.append("SetupFailed: ").append(getSetupFailed()).append(","); if (getShuttingDown() != null) sb.append("ShuttingDown: ").append(getShuttingDown()).append(","); if (getStartFailed() != null)
protocolMarshaller.marshall(instancesCount.getAssigning(), ASSIGNING_BINDING); protocolMarshaller.marshall(instancesCount.getBooting(), BOOTING_BINDING); protocolMarshaller.marshall(instancesCount.getConnectionLost(), CONNECTIONLOST_BINDING); protocolMarshaller.marshall(instancesCount.getDeregistering(), DEREGISTERING_BINDING); protocolMarshaller.marshall(instancesCount.getOnline(), ONLINE_BINDING); protocolMarshaller.marshall(instancesCount.getPending(), PENDING_BINDING); protocolMarshaller.marshall(instancesCount.getRebooting(), REBOOTING_BINDING); protocolMarshaller.marshall(instancesCount.getRegistered(), REGISTERED_BINDING); protocolMarshaller.marshall(instancesCount.getRegistering(), REGISTERING_BINDING); protocolMarshaller.marshall(instancesCount.getRequested(), REQUESTED_BINDING); protocolMarshaller.marshall(instancesCount.getRunningSetup(), RUNNINGSETUP_BINDING); protocolMarshaller.marshall(instancesCount.getSetupFailed(), SETUPFAILED_BINDING); protocolMarshaller.marshall(instancesCount.getShuttingDown(), SHUTTINGDOWN_BINDING); protocolMarshaller.marshall(instancesCount.getStartFailed(), STARTFAILED_BINDING); protocolMarshaller.marshall(instancesCount.getStopFailed(), STOPFAILED_BINDING); protocolMarshaller.marshall(instancesCount.getStopped(), STOPPED_BINDING); protocolMarshaller.marshall(instancesCount.getStopping(), STOPPING_BINDING); protocolMarshaller.marshall(instancesCount.getTerminated(), TERMINATED_BINDING); protocolMarshaller.marshall(instancesCount.getTerminating(), TERMINATING_BINDING); protocolMarshaller.marshall(instancesCount.getUnassigning(), UNASSIGNING_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAssigning() == null) ? 0 : getAssigning().hashCode()); hashCode = prime * hashCode + ((getBooting() == null) ? 0 : getBooting().hashCode()); hashCode = prime * hashCode + ((getConnectionLost() == null) ? 0 : getConnectionLost().hashCode()); hashCode = prime * hashCode + ((getDeregistering() == null) ? 0 : getDeregistering().hashCode()); hashCode = prime * hashCode + ((getOnline() == null) ? 0 : getOnline().hashCode()); hashCode = prime * hashCode + ((getPending() == null) ? 0 : getPending().hashCode()); hashCode = prime * hashCode + ((getRebooting() == null) ? 0 : getRebooting().hashCode()); hashCode = prime * hashCode + ((getRegistered() == null) ? 0 : getRegistered().hashCode()); hashCode = prime * hashCode + ((getRegistering() == null) ? 0 : getRegistering().hashCode()); hashCode = prime * hashCode + ((getRequested() == null) ? 0 : getRequested().hashCode()); hashCode = prime * hashCode + ((getRunningSetup() == null) ? 0 : getRunningSetup().hashCode()); hashCode = prime * hashCode + ((getSetupFailed() == null) ? 0 : getSetupFailed().hashCode()); hashCode = prime * hashCode + ((getShuttingDown() == null) ? 0 : getShuttingDown().hashCode()); hashCode = prime * hashCode + ((getStartFailed() == null) ? 0 : getStartFailed().hashCode()); hashCode = prime * hashCode + ((getStopFailed() == null) ? 0 : getStopFailed().hashCode()); hashCode = prime * hashCode + ((getStopped() == null) ? 0 : getStopped().hashCode()); hashCode = prime * hashCode + ((getStopping() == null) ? 0 : getStopping().hashCode()); hashCode = prime * hashCode + ((getTerminated() == null) ? 0 : getTerminated().hashCode()); hashCode = prime * hashCode + ((getTerminating() == null) ? 0 : getTerminating().hashCode()); hashCode = prime * hashCode + ((getUnassigning() == null) ? 0 : getUnassigning().hashCode()); return hashCode; }
return false; InstancesCount other = (InstancesCount) obj; if (other.getAssigning() == null ^ this.getAssigning() == null) return false; if (other.getAssigning() != null && other.getAssigning().equals(this.getAssigning()) == false) return false; if (other.getBooting() == null ^ this.getBooting() == null) return false; if (other.getBooting() != null && other.getBooting().equals(this.getBooting()) == false) return false; if (other.getConnectionLost() == null ^ this.getConnectionLost() == null) return false; if (other.getConnectionLost() != null && other.getConnectionLost().equals(this.getConnectionLost()) == false) return false; if (other.getDeregistering() == null ^ this.getDeregistering() == null) return false; if (other.getDeregistering() != null && other.getDeregistering().equals(this.getDeregistering()) == false) return false; if (other.getOnline() == null ^ this.getOnline() == null) return false; if (other.getOnline() != null && other.getOnline().equals(this.getOnline()) == false) return false; if (other.getPending() == null ^ this.getPending() == null) return false; if (other.getPending() != null && other.getPending().equals(this.getPending()) == false) return false; if (other.getRebooting() == null ^ this.getRebooting() == null) return false; if (other.getRebooting() != null && other.getRebooting().equals(this.getRebooting()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAssigning() != null) sb.append("Assigning: ").append(getAssigning()).append(","); if (getBooting() != null) sb.append("Booting: ").append(getBooting()).append(","); if (getConnectionLost() != null) sb.append("ConnectionLost: ").append(getConnectionLost()).append(","); if (getDeregistering() != null) sb.append("Deregistering: ").append(getDeregistering()).append(","); if (getOnline() != null) sb.append("Online: ").append(getOnline()).append(","); if (getPending() != null) sb.append("Pending: ").append(getPending()).append(","); if (getRebooting() != null) sb.append("Rebooting: ").append(getRebooting()).append(","); if (getRegistered() != null) sb.append("Registered: ").append(getRegistered()).append(","); if (getRegistering() != null) sb.append("Registering: ").append(getRegistering()).append(","); if (getRequested() != null) sb.append("Requested: ").append(getRequested()).append(","); if (getRunningSetup() != null) sb.append("RunningSetup: ").append(getRunningSetup()).append(","); if (getSetupFailed() != null) sb.append("SetupFailed: ").append(getSetupFailed()).append(","); if (getShuttingDown() != null) sb.append("ShuttingDown: ").append(getShuttingDown()).append(","); if (getStartFailed() != null)
protocolMarshaller.marshall(instancesCount.getAssigning(), ASSIGNING_BINDING); protocolMarshaller.marshall(instancesCount.getBooting(), BOOTING_BINDING); protocolMarshaller.marshall(instancesCount.getConnectionLost(), CONNECTIONLOST_BINDING); protocolMarshaller.marshall(instancesCount.getDeregistering(), DEREGISTERING_BINDING); protocolMarshaller.marshall(instancesCount.getOnline(), ONLINE_BINDING); protocolMarshaller.marshall(instancesCount.getPending(), PENDING_BINDING); protocolMarshaller.marshall(instancesCount.getRebooting(), REBOOTING_BINDING); protocolMarshaller.marshall(instancesCount.getRegistered(), REGISTERED_BINDING); protocolMarshaller.marshall(instancesCount.getRegistering(), REGISTERING_BINDING); protocolMarshaller.marshall(instancesCount.getRequested(), REQUESTED_BINDING); protocolMarshaller.marshall(instancesCount.getRunningSetup(), RUNNINGSETUP_BINDING); protocolMarshaller.marshall(instancesCount.getSetupFailed(), SETUPFAILED_BINDING); protocolMarshaller.marshall(instancesCount.getShuttingDown(), SHUTTINGDOWN_BINDING); protocolMarshaller.marshall(instancesCount.getStartFailed(), STARTFAILED_BINDING); protocolMarshaller.marshall(instancesCount.getStopFailed(), STOPFAILED_BINDING); protocolMarshaller.marshall(instancesCount.getStopped(), STOPPED_BINDING); protocolMarshaller.marshall(instancesCount.getStopping(), STOPPING_BINDING); protocolMarshaller.marshall(instancesCount.getTerminated(), TERMINATED_BINDING); protocolMarshaller.marshall(instancesCount.getTerminating(), TERMINATING_BINDING); protocolMarshaller.marshall(instancesCount.getUnassigning(), UNASSIGNING_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);