/** * 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 (getNamePattern() != null) sb.append("NamePattern: ").append(getNamePattern()).append(","); if (getStates() != null) sb.append("States: ").append(getStates()).append(","); if (getDurationRange() != null) sb.append("DurationRange: ").append(getDurationRange()).append(","); if (getRulesPackageArns() != null) sb.append("RulesPackageArns: ").append(getRulesPackageArns()).append(","); if (getStartTimeRange() != null) sb.append("StartTimeRange: ").append(getStartTimeRange()).append(","); if (getCompletionTimeRange() != null) sb.append("CompletionTimeRange: ").append(getCompletionTimeRange()).append(","); if (getStateChangeTimeRange() != null) sb.append("StateChangeTimeRange: ").append(getStateChangeTimeRange()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNamePattern() == null) ? 0 : getNamePattern().hashCode()); hashCode = prime * hashCode + ((getStates() == null) ? 0 : getStates().hashCode()); hashCode = prime * hashCode + ((getDurationRange() == null) ? 0 : getDurationRange().hashCode()); hashCode = prime * hashCode + ((getRulesPackageArns() == null) ? 0 : getRulesPackageArns().hashCode()); hashCode = prime * hashCode + ((getStartTimeRange() == null) ? 0 : getStartTimeRange().hashCode()); hashCode = prime * hashCode + ((getCompletionTimeRange() == null) ? 0 : getCompletionTimeRange().hashCode()); hashCode = prime * hashCode + ((getStateChangeTimeRange() == null) ? 0 : getStateChangeTimeRange().hashCode()); return hashCode; }
/** * Marshall the given parameter object. */ public void marshall(AssessmentRunFilter assessmentRunFilter, ProtocolMarshaller protocolMarshaller) { if (assessmentRunFilter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(assessmentRunFilter.getNamePattern(), NAMEPATTERN_BINDING); protocolMarshaller.marshall(assessmentRunFilter.getStates(), STATES_BINDING); protocolMarshaller.marshall(assessmentRunFilter.getDurationRange(), DURATIONRANGE_BINDING); protocolMarshaller.marshall(assessmentRunFilter.getRulesPackageArns(), RULESPACKAGEARNS_BINDING); protocolMarshaller.marshall(assessmentRunFilter.getStartTimeRange(), STARTTIMERANGE_BINDING); protocolMarshaller.marshall(assessmentRunFilter.getCompletionTimeRange(), COMPLETIONTIMERANGE_BINDING); protocolMarshaller.marshall(assessmentRunFilter.getStateChangeTimeRange(), STATECHANGETIMERANGE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (other.getStartTimeRange() != null && other.getStartTimeRange().equals(this.getStartTimeRange()) == false) return false; if (other.getCompletionTimeRange() == null ^ this.getCompletionTimeRange() == null) return false; if (other.getCompletionTimeRange() != null && other.getCompletionTimeRange().equals(this.getCompletionTimeRange()) == false) return false; if (other.getStateChangeTimeRange() == null ^ this.getStateChangeTimeRange() == null)
/** * 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 (getNamePattern() != null) sb.append("NamePattern: ").append(getNamePattern()).append(","); if (getStates() != null) sb.append("States: ").append(getStates()).append(","); if (getDurationRange() != null) sb.append("DurationRange: ").append(getDurationRange()).append(","); if (getRulesPackageArns() != null) sb.append("RulesPackageArns: ").append(getRulesPackageArns()).append(","); if (getStartTimeRange() != null) sb.append("StartTimeRange: ").append(getStartTimeRange()).append(","); if (getCompletionTimeRange() != null) sb.append("CompletionTimeRange: ").append(getCompletionTimeRange()).append(","); if (getStateChangeTimeRange() != null) sb.append("StateChangeTimeRange: ").append(getStateChangeTimeRange()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNamePattern() == null) ? 0 : getNamePattern().hashCode()); hashCode = prime * hashCode + ((getStates() == null) ? 0 : getStates().hashCode()); hashCode = prime * hashCode + ((getDurationRange() == null) ? 0 : getDurationRange().hashCode()); hashCode = prime * hashCode + ((getRulesPackageArns() == null) ? 0 : getRulesPackageArns().hashCode()); hashCode = prime * hashCode + ((getStartTimeRange() == null) ? 0 : getStartTimeRange().hashCode()); hashCode = prime * hashCode + ((getCompletionTimeRange() == null) ? 0 : getCompletionTimeRange().hashCode()); hashCode = prime * hashCode + ((getStateChangeTimeRange() == null) ? 0 : getStateChangeTimeRange().hashCode()); return hashCode; }
/** * Marshall the given parameter object. */ public void marshall(AssessmentRunFilter assessmentRunFilter, ProtocolMarshaller protocolMarshaller) { if (assessmentRunFilter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(assessmentRunFilter.getNamePattern(), NAMEPATTERN_BINDING); protocolMarshaller.marshall(assessmentRunFilter.getStates(), STATES_BINDING); protocolMarshaller.marshall(assessmentRunFilter.getDurationRange(), DURATIONRANGE_BINDING); protocolMarshaller.marshall(assessmentRunFilter.getRulesPackageArns(), RULESPACKAGEARNS_BINDING); protocolMarshaller.marshall(assessmentRunFilter.getStartTimeRange(), STARTTIMERANGE_BINDING); protocolMarshaller.marshall(assessmentRunFilter.getCompletionTimeRange(), COMPLETIONTIMERANGE_BINDING); protocolMarshaller.marshall(assessmentRunFilter.getStateChangeTimeRange(), STATECHANGETIMERANGE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (other.getStartTimeRange() != null && other.getStartTimeRange().equals(this.getStartTimeRange()) == false) return false; if (other.getCompletionTimeRange() == null ^ this.getCompletionTimeRange() == null) return false; if (other.getCompletionTimeRange() != null && other.getCompletionTimeRange().equals(this.getCompletionTimeRange()) == false) return false; if (other.getStateChangeTimeRange() == null ^ this.getStateChangeTimeRange() == null)