if (getUserAttributesForFindings() != null) sb.append("UserAttributesForFindings: ").append(getUserAttributesForFindings()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getStartedAt() != null) sb.append("StartedAt: ").append(getStartedAt()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getAssessmentTemplateArn() == null) ? 0 : getAssessmentTemplateArn().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getDurationInSeconds() == null) ? 0 : getDurationInSeconds().hashCode()); hashCode = prime * hashCode + ((getRulesPackageArns() == null) ? 0 : getRulesPackageArns().hashCode()); hashCode = prime * hashCode + ((getUserAttributesForFindings() == null) ? 0 : getUserAttributesForFindings().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode()); hashCode = prime * hashCode + ((getCompletedAt() == null) ? 0 : getCompletedAt().hashCode()); hashCode = prime * hashCode + ((getStateChangedAt() == null) ? 0 : getStateChangedAt().hashCode()); hashCode = prime * hashCode + ((getDataCollected() == null) ? 0 : getDataCollected().hashCode()); hashCode = prime * hashCode + ((getStateChanges() == null) ? 0 : getStateChanges().hashCode()); hashCode = prime * hashCode + ((getNotifications() == null) ? 0 : getNotifications().hashCode()); hashCode = prime * hashCode + ((getFindingCounts() == null) ? 0 : getFindingCounts().hashCode()); return hashCode; }
if (other.getUserAttributesForFindings() != null && other.getUserAttributesForFindings().equals(this.getUserAttributesForFindings()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getStartedAt() == null ^ this.getStartedAt() == null)
/** * Marshall the given parameter object. */ public void marshall(AssessmentRun assessmentRun, ProtocolMarshaller protocolMarshaller) { if (assessmentRun == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(assessmentRun.getArn(), ARN_BINDING); protocolMarshaller.marshall(assessmentRun.getName(), NAME_BINDING); protocolMarshaller.marshall(assessmentRun.getAssessmentTemplateArn(), ASSESSMENTTEMPLATEARN_BINDING); protocolMarshaller.marshall(assessmentRun.getState(), STATE_BINDING); protocolMarshaller.marshall(assessmentRun.getDurationInSeconds(), DURATIONINSECONDS_BINDING); protocolMarshaller.marshall(assessmentRun.getRulesPackageArns(), RULESPACKAGEARNS_BINDING); protocolMarshaller.marshall(assessmentRun.getUserAttributesForFindings(), USERATTRIBUTESFORFINDINGS_BINDING); protocolMarshaller.marshall(assessmentRun.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(assessmentRun.getStartedAt(), STARTEDAT_BINDING); protocolMarshaller.marshall(assessmentRun.getCompletedAt(), COMPLETEDAT_BINDING); protocolMarshaller.marshall(assessmentRun.getStateChangedAt(), STATECHANGEDAT_BINDING); protocolMarshaller.marshall(assessmentRun.getDataCollected(), DATACOLLECTED_BINDING); protocolMarshaller.marshall(assessmentRun.getStateChanges(), STATECHANGES_BINDING); protocolMarshaller.marshall(assessmentRun.getNotifications(), NOTIFICATIONS_BINDING); protocolMarshaller.marshall(assessmentRun.getFindingCounts(), FINDINGCOUNTS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (getUserAttributesForFindings() != null) sb.append("UserAttributesForFindings: ").append(getUserAttributesForFindings()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getStartedAt() != null) sb.append("StartedAt: ").append(getStartedAt()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getAssessmentTemplateArn() == null) ? 0 : getAssessmentTemplateArn().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getDurationInSeconds() == null) ? 0 : getDurationInSeconds().hashCode()); hashCode = prime * hashCode + ((getRulesPackageArns() == null) ? 0 : getRulesPackageArns().hashCode()); hashCode = prime * hashCode + ((getUserAttributesForFindings() == null) ? 0 : getUserAttributesForFindings().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode()); hashCode = prime * hashCode + ((getCompletedAt() == null) ? 0 : getCompletedAt().hashCode()); hashCode = prime * hashCode + ((getStateChangedAt() == null) ? 0 : getStateChangedAt().hashCode()); hashCode = prime * hashCode + ((getDataCollected() == null) ? 0 : getDataCollected().hashCode()); hashCode = prime * hashCode + ((getStateChanges() == null) ? 0 : getStateChanges().hashCode()); hashCode = prime * hashCode + ((getNotifications() == null) ? 0 : getNotifications().hashCode()); hashCode = prime * hashCode + ((getFindingCounts() == null) ? 0 : getFindingCounts().hashCode()); return hashCode; }
if (other.getUserAttributesForFindings() != null && other.getUserAttributesForFindings().equals(this.getUserAttributesForFindings()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getStartedAt() == null ^ this.getStartedAt() == null)
/** * Marshall the given parameter object. */ public void marshall(AssessmentRun assessmentRun, ProtocolMarshaller protocolMarshaller) { if (assessmentRun == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(assessmentRun.getArn(), ARN_BINDING); protocolMarshaller.marshall(assessmentRun.getName(), NAME_BINDING); protocolMarshaller.marshall(assessmentRun.getAssessmentTemplateArn(), ASSESSMENTTEMPLATEARN_BINDING); protocolMarshaller.marshall(assessmentRun.getState(), STATE_BINDING); protocolMarshaller.marshall(assessmentRun.getDurationInSeconds(), DURATIONINSECONDS_BINDING); protocolMarshaller.marshall(assessmentRun.getRulesPackageArns(), RULESPACKAGEARNS_BINDING); protocolMarshaller.marshall(assessmentRun.getUserAttributesForFindings(), USERATTRIBUTESFORFINDINGS_BINDING); protocolMarshaller.marshall(assessmentRun.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(assessmentRun.getStartedAt(), STARTEDAT_BINDING); protocolMarshaller.marshall(assessmentRun.getCompletedAt(), COMPLETEDAT_BINDING); protocolMarshaller.marshall(assessmentRun.getStateChangedAt(), STATECHANGEDAT_BINDING); protocolMarshaller.marshall(assessmentRun.getDataCollected(), DATACOLLECTED_BINDING); protocolMarshaller.marshall(assessmentRun.getStateChanges(), STATECHANGES_BINDING); protocolMarshaller.marshall(assessmentRun.getNotifications(), NOTIFICATIONS_BINDING); protocolMarshaller.marshall(assessmentRun.getFindingCounts(), FINDINGCOUNTS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }