if (getAgentVersion() != null) sb.append("AgentVersion: ").append(getAgentVersion()).append(","); if (getOperatingSystem() != null) sb.append("OperatingSystem: ").append(getOperatingSystem()).append(","); if (getKernelVersion() != null) sb.append("KernelVersion: ").append(getKernelVersion()).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.getAgentVersion() != null && other.getAgentVersion().equals(this.getAgentVersion()) == false) return false; if (other.getOperatingSystem() == null ^ this.getOperatingSystem() == null) return false; if (other.getOperatingSystem() != null && other.getOperatingSystem().equals(this.getOperatingSystem()) == false) return false; if (other.getKernelVersion() == null ^ this.getKernelVersion() == 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 (getAgentVersion() != null) sb.append("AgentVersion: ").append(getAgentVersion()).append(","); if (getOperatingSystem() != null) sb.append("OperatingSystem: ").append(getOperatingSystem()).append(","); if (getKernelVersion() != null) sb.append("KernelVersion: ").append(getKernelVersion()).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.getAgentVersion() != null && other.getAgentVersion().equals(this.getAgentVersion()) == false) return false; if (other.getOperatingSystem() == null ^ this.getOperatingSystem() == null) return false; if (other.getOperatingSystem() != null && other.getOperatingSystem().equals(this.getOperatingSystem()) == false) return false; if (other.getKernelVersion() == null ^ this.getKernelVersion() == 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); } }