@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(); }
return false; TagDescription other = (TagDescription) obj; if (other.getResourceId() == null ^ this.getResourceId() == null) return false; if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null)
@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(); }
TagDescription other = (TagDescription) obj; if (other.getResourceId() == null ^ this.getResourceId() == null) return false; if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null)
public void marshall(TagDescription _tagDescription, Request<?> request, String _prefix) { String prefix; if (_tagDescription.getResourceId() != null) { prefix = _prefix + "ResourceId"; String resourceId = _tagDescription.getResourceId(); request.addParameter(prefix, StringUtils.fromString(resourceId)); } if (_tagDescription.getResourceType() != null) { prefix = _prefix + "ResourceType"; String resourceType = _tagDescription.getResourceType(); request.addParameter(prefix, StringUtils.fromString(resourceType)); } if (_tagDescription.getKey() != null) { prefix = _prefix + "Key"; String key = _tagDescription.getKey(); request.addParameter(prefix, StringUtils.fromString(key)); } if (_tagDescription.getValue() != null) { prefix = _prefix + "Value"; String value = _tagDescription.getValue(); request.addParameter(prefix, StringUtils.fromString(value)); } if (_tagDescription.getPropagateAtLaunch() != null) { prefix = _prefix + "PropagateAtLaunch"; Boolean propagateAtLaunch = _tagDescription.getPropagateAtLaunch(); request.addParameter(prefix, StringUtils.fromBoolean(propagateAtLaunch)); } }