if (getKernelVersion() != null) sb.append("KernelVersion: ").append(getKernelVersion()).append(","); if (getIpv4Address() != null) sb.append("Ipv4Address: ").append(getIpv4Address()); sb.append("}"); return sb.toString();
@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.getKernelVersion() != null && other.getKernelVersion().equals(this.getKernelVersion()) == false) return false; if (other.getIpv4Address() == null ^ this.getIpv4Address() == null) return false; if (other.getIpv4Address() != null && other.getIpv4Address().equals(this.getIpv4Address()) == false) return false; return true;
/** * 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 (getKernelVersion() != null) sb.append("KernelVersion: ").append(getKernelVersion()).append(","); if (getIpv4Address() != null) sb.append("Ipv4Address: ").append(getIpv4Address()); sb.append("}"); return sb.toString();
@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.getKernelVersion() != null && other.getKernelVersion().equals(this.getKernelVersion()) == false) return false; if (other.getIpv4Address() == null ^ this.getIpv4Address() == null) return false; if (other.getIpv4Address() != null && other.getIpv4Address().equals(this.getIpv4Address()) == false) return false; return true;
/** * 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); } }