/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAgentId() != null) sb.append("AgentId: ").append(getAgentId()).append(","); if (getAssessmentRunArn() != null) sb.append("AssessmentRunArn: ").append(getAssessmentRunArn()).append(","); if (getAgentHealth() != null) sb.append("AgentHealth: ").append(getAgentHealth()).append(","); if (getAgentHealthCode() != null) sb.append("AgentHealthCode: ").append(getAgentHealthCode()).append(","); if (getAgentHealthDetails() != null) sb.append("AgentHealthDetails: ").append(getAgentHealthDetails()).append(","); if (getAutoScalingGroup() != null) sb.append("AutoScalingGroup: ").append(getAutoScalingGroup()).append(","); if (getTelemetryMetadata() != null) sb.append("TelemetryMetadata: ").append(getTelemetryMetadata()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAgentId() == null) ? 0 : getAgentId().hashCode()); hashCode = prime * hashCode + ((getAssessmentRunArn() == null) ? 0 : getAssessmentRunArn().hashCode()); hashCode = prime * hashCode + ((getAgentHealth() == null) ? 0 : getAgentHealth().hashCode()); hashCode = prime * hashCode + ((getAgentHealthCode() == null) ? 0 : getAgentHealthCode().hashCode()); hashCode = prime * hashCode + ((getAgentHealthDetails() == null) ? 0 : getAgentHealthDetails().hashCode()); hashCode = prime * hashCode + ((getAutoScalingGroup() == null) ? 0 : getAutoScalingGroup().hashCode()); hashCode = prime * hashCode + ((getTelemetryMetadata() == null) ? 0 : getTelemetryMetadata().hashCode()); return hashCode; }
if (other.getAgentId() != null && other.getAgentId().equals(this.getAgentId()) == false) return false; if (other.getAssessmentRunArn() == null ^ this.getAssessmentRunArn() == null) return false; if (other.getAssessmentRunArn() != null && other.getAssessmentRunArn().equals(this.getAssessmentRunArn()) == false) return false; if (other.getAgentHealth() == null ^ this.getAgentHealth() == null)
/** * Marshall the given parameter object. */ public void marshall(AssessmentRunAgent assessmentRunAgent, ProtocolMarshaller protocolMarshaller) { if (assessmentRunAgent == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(assessmentRunAgent.getAgentId(), AGENTID_BINDING); protocolMarshaller.marshall(assessmentRunAgent.getAssessmentRunArn(), ASSESSMENTRUNARN_BINDING); protocolMarshaller.marshall(assessmentRunAgent.getAgentHealth(), AGENTHEALTH_BINDING); protocolMarshaller.marshall(assessmentRunAgent.getAgentHealthCode(), AGENTHEALTHCODE_BINDING); protocolMarshaller.marshall(assessmentRunAgent.getAgentHealthDetails(), AGENTHEALTHDETAILS_BINDING); protocolMarshaller.marshall(assessmentRunAgent.getAutoScalingGroup(), AUTOSCALINGGROUP_BINDING); protocolMarshaller.marshall(assessmentRunAgent.getTelemetryMetadata(), TELEMETRYMETADATA_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAgentId() != null) sb.append("AgentId: ").append(getAgentId()).append(","); if (getAssessmentRunArn() != null) sb.append("AssessmentRunArn: ").append(getAssessmentRunArn()).append(","); if (getAgentHealth() != null) sb.append("AgentHealth: ").append(getAgentHealth()).append(","); if (getAgentHealthCode() != null) sb.append("AgentHealthCode: ").append(getAgentHealthCode()).append(","); if (getAgentHealthDetails() != null) sb.append("AgentHealthDetails: ").append(getAgentHealthDetails()).append(","); if (getAutoScalingGroup() != null) sb.append("AutoScalingGroup: ").append(getAutoScalingGroup()).append(","); if (getTelemetryMetadata() != null) sb.append("TelemetryMetadata: ").append(getTelemetryMetadata()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAgentId() == null) ? 0 : getAgentId().hashCode()); hashCode = prime * hashCode + ((getAssessmentRunArn() == null) ? 0 : getAssessmentRunArn().hashCode()); hashCode = prime * hashCode + ((getAgentHealth() == null) ? 0 : getAgentHealth().hashCode()); hashCode = prime * hashCode + ((getAgentHealthCode() == null) ? 0 : getAgentHealthCode().hashCode()); hashCode = prime * hashCode + ((getAgentHealthDetails() == null) ? 0 : getAgentHealthDetails().hashCode()); hashCode = prime * hashCode + ((getAutoScalingGroup() == null) ? 0 : getAutoScalingGroup().hashCode()); hashCode = prime * hashCode + ((getTelemetryMetadata() == null) ? 0 : getTelemetryMetadata().hashCode()); return hashCode; }
if (other.getAgentId() != null && other.getAgentId().equals(this.getAgentId()) == false) return false; if (other.getAssessmentRunArn() == null ^ this.getAssessmentRunArn() == null) return false; if (other.getAssessmentRunArn() != null && other.getAssessmentRunArn().equals(this.getAssessmentRunArn()) == false) return false; if (other.getAgentHealth() == null ^ this.getAgentHealth() == null)
/** * Marshall the given parameter object. */ public void marshall(AssessmentRunAgent assessmentRunAgent, ProtocolMarshaller protocolMarshaller) { if (assessmentRunAgent == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(assessmentRunAgent.getAgentId(), AGENTID_BINDING); protocolMarshaller.marshall(assessmentRunAgent.getAssessmentRunArn(), ASSESSMENTRUNARN_BINDING); protocolMarshaller.marshall(assessmentRunAgent.getAgentHealth(), AGENTHEALTH_BINDING); protocolMarshaller.marshall(assessmentRunAgent.getAgentHealthCode(), AGENTHEALTHCODE_BINDING); protocolMarshaller.marshall(assessmentRunAgent.getAgentHealthDetails(), AGENTHEALTHDETAILS_BINDING); protocolMarshaller.marshall(assessmentRunAgent.getAutoScalingGroup(), AUTOSCALINGGROUP_BINDING); protocolMarshaller.marshall(assessmentRunAgent.getTelemetryMetadata(), TELEMETRYMETADATA_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }