if (getHostname() != null) sb.append("Hostname: ").append(getHostname()).append(","); if (getAgentId() != null) sb.append("AgentId: ").append(getAgentId()).append(","); if (getAutoScalingGroup() != null) sb.append("AutoScalingGroup: ").append(getAutoScalingGroup()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostname() == null) ? 0 : getHostname().hashCode()); hashCode = prime * hashCode + ((getAgentId() == null) ? 0 : getAgentId().hashCode()); hashCode = prime * hashCode + ((getAutoScalingGroup() == null) ? 0 : getAutoScalingGroup().hashCode()); hashCode = prime * hashCode + ((getAgentHealth() == null) ? 0 : getAgentHealth().hashCode()); hashCode = prime * hashCode + ((getAgentVersion() == null) ? 0 : getAgentVersion().hashCode()); hashCode = prime * hashCode + ((getOperatingSystem() == null) ? 0 : getOperatingSystem().hashCode()); hashCode = prime * hashCode + ((getKernelVersion() == null) ? 0 : getKernelVersion().hashCode()); hashCode = prime * hashCode + ((getIpv4Address() == null) ? 0 : getIpv4Address().hashCode()); return hashCode; }
if (other.getHostname() != null && other.getHostname().equals(this.getHostname()) == false) return false; if (other.getAgentId() == null ^ this.getAgentId() == null) return false; if (other.getAgentId() != null && other.getAgentId().equals(this.getAgentId()) == false) return false; if (other.getAutoScalingGroup() == null ^ this.getAutoScalingGroup() == null)
/** * Marshall the given parameter object. */ public void marshall(AgentPreview agentPreview, ProtocolMarshaller protocolMarshaller) { if (agentPreview == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(agentPreview.getHostname(), HOSTNAME_BINDING); protocolMarshaller.marshall(agentPreview.getAgentId(), AGENTID_BINDING); protocolMarshaller.marshall(agentPreview.getAutoScalingGroup(), AUTOSCALINGGROUP_BINDING); protocolMarshaller.marshall(agentPreview.getAgentHealth(), AGENTHEALTH_BINDING); protocolMarshaller.marshall(agentPreview.getAgentVersion(), AGENTVERSION_BINDING); protocolMarshaller.marshall(agentPreview.getOperatingSystem(), OPERATINGSYSTEM_BINDING); protocolMarshaller.marshall(agentPreview.getKernelVersion(), KERNELVERSION_BINDING); protocolMarshaller.marshall(agentPreview.getIpv4Address(), IPV4ADDRESS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (getHostname() != null) sb.append("Hostname: ").append(getHostname()).append(","); if (getAgentId() != null) sb.append("AgentId: ").append(getAgentId()).append(","); if (getAutoScalingGroup() != null) sb.append("AutoScalingGroup: ").append(getAutoScalingGroup()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostname() == null) ? 0 : getHostname().hashCode()); hashCode = prime * hashCode + ((getAgentId() == null) ? 0 : getAgentId().hashCode()); hashCode = prime * hashCode + ((getAutoScalingGroup() == null) ? 0 : getAutoScalingGroup().hashCode()); hashCode = prime * hashCode + ((getAgentHealth() == null) ? 0 : getAgentHealth().hashCode()); hashCode = prime * hashCode + ((getAgentVersion() == null) ? 0 : getAgentVersion().hashCode()); hashCode = prime * hashCode + ((getOperatingSystem() == null) ? 0 : getOperatingSystem().hashCode()); hashCode = prime * hashCode + ((getKernelVersion() == null) ? 0 : getKernelVersion().hashCode()); hashCode = prime * hashCode + ((getIpv4Address() == null) ? 0 : getIpv4Address().hashCode()); return hashCode; }
if (other.getHostname() != null && other.getHostname().equals(this.getHostname()) == false) return false; if (other.getAgentId() == null ^ this.getAgentId() == null) return false; if (other.getAgentId() != null && other.getAgentId().equals(this.getAgentId()) == false) return false; if (other.getAutoScalingGroup() == null ^ this.getAutoScalingGroup() == null)
/** * Marshall the given parameter object. */ public void marshall(AgentPreview agentPreview, ProtocolMarshaller protocolMarshaller) { if (agentPreview == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(agentPreview.getHostname(), HOSTNAME_BINDING); protocolMarshaller.marshall(agentPreview.getAgentId(), AGENTID_BINDING); protocolMarshaller.marshall(agentPreview.getAutoScalingGroup(), AUTOSCALINGGROUP_BINDING); protocolMarshaller.marshall(agentPreview.getAgentHealth(), AGENTHEALTH_BINDING); protocolMarshaller.marshall(agentPreview.getAgentVersion(), AGENTVERSION_BINDING); protocolMarshaller.marshall(agentPreview.getOperatingSystem(), OPERATINGSYSTEM_BINDING); protocolMarshaller.marshall(agentPreview.getKernelVersion(), KERNELVERSION_BINDING); protocolMarshaller.marshall(agentPreview.getIpv4Address(), IPV4ADDRESS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }