/** * 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getValues() != null) sb.append("Values: ").append(getValues()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Filter == false) return false; Filter other = (Filter) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getValues() == null ^ this.getValues() == null) return false; if (other.getValues() != null && other.getValues().equals(this.getValues()) == false) return false; return true; }
if (!filtersListValue.getValues().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) filtersListValue.getValues()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> valuesList = (com.amazonaws.internal.SdkInternalList<String>) filtersListValue.getValues(); int valuesListIndex = 1;
/** * <p> * The value of the filter. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param values <p> * The value of the filter. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public Filter withValues(String... values) { if (getValues() == null) { this.values = new java.util.ArrayList<String>(values.length); } for (String value : values) { this.values.add(value); } return this; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: " + getName() + ","); if (getValues() != null) sb.append("Values: " + getValues()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Filter == false) return false; Filter other = (Filter) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getValues() == null ^ this.getValues() == null) return false; if (other.getValues() != null && other.getValues().equals(this.getValues()) == false) return false; return true; } }
public void marshall(Filter _filter, Request<?> request, String _prefix) { String prefix; if (_filter.getName() != null) { prefix = _prefix + "Name"; String name = _filter.getName(); request.addParameter(prefix, StringUtils.fromString(name)); } if (_filter.getValues() != null) { prefix = _prefix + "Values"; java.util.List<String> values = _filter.getValues(); int valuesIndex = 1; String valuesPrefix = prefix; for (String valuesItem : values) { prefix = valuesPrefix + ".member." + valuesIndex; if (valuesItem != null) { request.addParameter(prefix, StringUtils.fromString(valuesItem)); } valuesIndex++; } prefix = valuesPrefix; } }