@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getLabel() == null) ? 0 : getLabel().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 (getTopicArn() != null) sb.append("TopicArn: ").append(getTopicArn()).append(","); if (getLabel() != null) sb.append("Label: ").append(getLabel()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RemovePermissionRequest == false) return false; RemovePermissionRequest other = (RemovePermissionRequest) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; if (other.getLabel() == null ^ this.getLabel() == null) return false; if (other.getLabel() != null && other.getLabel().equals(this.getLabel()) == false) return false; return true; }
public Request<RemovePermissionRequest> marshall(RemovePermissionRequest removePermissionRequest) { if (removePermissionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<RemovePermissionRequest> request = new DefaultRequest<RemovePermissionRequest>(removePermissionRequest, "AmazonSNS"); request.addParameter("Action", "RemovePermission"); request.addParameter("Version", "2010-03-31"); request.setHttpMethod(HttpMethodName.POST); if (removePermissionRequest.getTopicArn() != null) { request.addParameter("TopicArn", StringUtils.fromString(removePermissionRequest.getTopicArn())); } if (removePermissionRequest.getLabel() != null) { request.addParameter("Label", StringUtils.fromString(removePermissionRequest.getLabel())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getLabel() == null) ? 0 : getLabel().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 (getTopicArn() != null) sb.append("TopicArn: " + getTopicArn() + ","); if (getLabel() != null) sb.append("Label: " + getLabel()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RemovePermissionRequest == false) return false; RemovePermissionRequest other = (RemovePermissionRequest) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; if (other.getLabel() == null ^ this.getLabel() == null) return false; if (other.getLabel() != null && other.getLabel().equals(this.getLabel()) == false) return false; return true; } }
public Request<RemovePermissionRequest> marshall(RemovePermissionRequest removePermissionRequest) { if (removePermissionRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(RemovePermissionRequest)"); } Request<RemovePermissionRequest> request = new DefaultRequest<RemovePermissionRequest>( removePermissionRequest, "AmazonSNS"); request.addParameter("Action", "RemovePermission"); request.addParameter("Version", "2010-03-31"); String prefix; if (removePermissionRequest.getTopicArn() != null) { prefix = "TopicArn"; String topicArn = removePermissionRequest.getTopicArn(); request.addParameter(prefix, StringUtils.fromString(topicArn)); } if (removePermissionRequest.getLabel() != null) { prefix = "Label"; String label = removePermissionRequest.getLabel(); request.addParameter(prefix, StringUtils.fromString(label)); } return request; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getLabel() == null) ? 0 : getLabel().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 (getTopicArn() != null) sb.append("TopicArn: " + getTopicArn() + ","); if (getLabel() != null) sb.append("Label: " + getLabel()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RemovePermissionRequest == false) return false; RemovePermissionRequest other = (RemovePermissionRequest) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; if (other.getLabel() == null ^ this.getLabel() == null) return false; if (other.getLabel() != null && other.getLabel().equals(this.getLabel()) == false) return false; return true; } }
public Request<RemovePermissionRequest> marshall(RemovePermissionRequest removePermissionRequest) { if (removePermissionRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(RemovePermissionRequest)"); } Request<RemovePermissionRequest> request = new DefaultRequest<RemovePermissionRequest>( removePermissionRequest, "AmazonSNS"); request.addParameter("Action", "RemovePermission"); request.addParameter("Version", "2010-03-31"); String prefix; if (removePermissionRequest.getTopicArn() != null) { prefix = "TopicArn"; String topicArn = removePermissionRequest.getTopicArn(); request.addParameter(prefix, StringUtils.fromString(topicArn)); } if (removePermissionRequest.getLabel() != null) { prefix = "Label"; String label = removePermissionRequest.getLabel(); request.addParameter(prefix, StringUtils.fromString(label)); } return request; } }