@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getKey() == null) ? 0 : getKey().hashCode()); hashCode = prime * hashCode + ((getValue() == null) ? 0 : getValue().hashCode()); hashCode = prime * hashCode + ((getPropagateAtLaunch() == null) ? 0 : getPropagateAtLaunch().hashCode()); return hashCode; }
/** * 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 (getResourceId() != null) sb.append("ResourceId: ").append(getResourceId()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getKey() != null) sb.append("Key: ").append(getKey()).append(","); if (getValue() != null) sb.append("Value: ").append(getValue()).append(","); if (getPropagateAtLaunch() != null) sb.append("PropagateAtLaunch: ").append(getPropagateAtLaunch()); sb.append("}"); return sb.toString(); }
if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getKey() == null ^ this.getKey() == null)
if (tagsListValue.getResourceType() != null) { request.addParameter("Tags.member." + tagsListIndex + ".ResourceType", StringUtils.fromString(tagsListValue.getResourceType()));
if (tagsListValue.getResourceType() != null) { request.addParameter("Tags.member." + tagsListIndex + ".ResourceType", StringUtils.fromString(tagsListValue.getResourceType()));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getKey() == null) ? 0 : getKey().hashCode()); hashCode = prime * hashCode + ((getValue() == null) ? 0 : getValue().hashCode()); hashCode = prime * hashCode + ((getPropagateAtLaunch() == null) ? 0 : getPropagateAtLaunch().hashCode()); return hashCode; }
/** * 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 (getResourceId() != null) sb.append("ResourceId: " + getResourceId() + ","); if (getResourceType() != null) sb.append("ResourceType: " + getResourceType() + ","); if (getKey() != null) sb.append("Key: " + getKey() + ","); if (getValue() != null) sb.append("Value: " + getValue() + ","); if (getPropagateAtLaunch() != null) sb.append("PropagateAtLaunch: " + getPropagateAtLaunch()); sb.append("}"); return sb.toString(); }
&& other.getResourceId().equals(this.getResourceId()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getKey() == null ^ this.getKey() == null)
if (tagsListValue.getResourceType() != null) { request.addParameter("Tags.member." + tagsListIndex + ".ResourceType", StringUtils.fromString(tagsListValue.getResourceType()));
public void marshall(Tag _tag, Request<?> request, String _prefix) { String prefix; if (_tag.getResourceId() != null) { prefix = _prefix + "ResourceId"; String resourceId = _tag.getResourceId(); request.addParameter(prefix, StringUtils.fromString(resourceId)); } if (_tag.getResourceType() != null) { prefix = _prefix + "ResourceType"; String resourceType = _tag.getResourceType(); request.addParameter(prefix, StringUtils.fromString(resourceType)); } if (_tag.getKey() != null) { prefix = _prefix + "Key"; String key = _tag.getKey(); request.addParameter(prefix, StringUtils.fromString(key)); } if (_tag.getValue() != null) { prefix = _prefix + "Value"; String value = _tag.getValue(); request.addParameter(prefix, StringUtils.fromString(value)); } if (_tag.getPropagateAtLaunch() != null) { prefix = _prefix + "PropagateAtLaunch"; Boolean propagateAtLaunch = _tag.getPropagateAtLaunch(); request.addParameter(prefix, StringUtils.fromBoolean(propagateAtLaunch)); } }