@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCacheSecurityGroupName() == null) ? 0 : getCacheSecurityGroupName().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().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 (getCacheSecurityGroupName() != null) sb.append("CacheSecurityGroupName: ").append(getCacheSecurityGroupName()).append(","); if (getMaxRecords() != null) sb.append("MaxRecords: ").append(getMaxRecords()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCacheSecurityGroupsRequest == false) return false; DescribeCacheSecurityGroupsRequest other = (DescribeCacheSecurityGroupsRequest) obj; if (other.getCacheSecurityGroupName() == null ^ this.getCacheSecurityGroupName() == null) return false; if (other.getCacheSecurityGroupName() != null && other.getCacheSecurityGroupName().equals(this.getCacheSecurityGroupName()) == false) return false; if (other.getMaxRecords() == null ^ this.getMaxRecords() == null) return false; if (other.getMaxRecords() != null && other.getMaxRecords().equals(this.getMaxRecords()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; return true; }
public Request<DescribeCacheSecurityGroupsRequest> marshall(DescribeCacheSecurityGroupsRequest describeCacheSecurityGroupsRequest) { if (describeCacheSecurityGroupsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DescribeCacheSecurityGroupsRequest> request = new DefaultRequest<DescribeCacheSecurityGroupsRequest>(describeCacheSecurityGroupsRequest, "AmazonElastiCache"); request.addParameter("Action", "DescribeCacheSecurityGroups"); request.addParameter("Version", "2015-02-02"); request.setHttpMethod(HttpMethodName.POST); if (describeCacheSecurityGroupsRequest.getCacheSecurityGroupName() != null) { request.addParameter("CacheSecurityGroupName", StringUtils.fromString(describeCacheSecurityGroupsRequest.getCacheSecurityGroupName())); } if (describeCacheSecurityGroupsRequest.getMaxRecords() != null) { request.addParameter("MaxRecords", StringUtils.fromInteger(describeCacheSecurityGroupsRequest.getMaxRecords())); } if (describeCacheSecurityGroupsRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeCacheSecurityGroupsRequest.getMarker())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCacheSecurityGroupName() == null) ? 0 : getCacheSecurityGroupName().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().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 (getCacheSecurityGroupName() != null) sb.append("CacheSecurityGroupName: ").append(getCacheSecurityGroupName()).append(","); if (getMaxRecords() != null) sb.append("MaxRecords: ").append(getMaxRecords()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCacheSecurityGroupsRequest == false) return false; DescribeCacheSecurityGroupsRequest other = (DescribeCacheSecurityGroupsRequest) obj; if (other.getCacheSecurityGroupName() == null ^ this.getCacheSecurityGroupName() == null) return false; if (other.getCacheSecurityGroupName() != null && other.getCacheSecurityGroupName().equals(this.getCacheSecurityGroupName()) == false) return false; if (other.getMaxRecords() == null ^ this.getMaxRecords() == null) return false; if (other.getMaxRecords() != null && other.getMaxRecords().equals(this.getMaxRecords()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; return true; }
public Request<DescribeCacheSecurityGroupsRequest> marshall(DescribeCacheSecurityGroupsRequest describeCacheSecurityGroupsRequest) { if (describeCacheSecurityGroupsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DescribeCacheSecurityGroupsRequest> request = new DefaultRequest<DescribeCacheSecurityGroupsRequest>(describeCacheSecurityGroupsRequest, "AmazonElastiCache"); request.addParameter("Action", "DescribeCacheSecurityGroups"); request.addParameter("Version", "2015-02-02"); request.setHttpMethod(HttpMethodName.POST); if (describeCacheSecurityGroupsRequest.getCacheSecurityGroupName() != null) { request.addParameter("CacheSecurityGroupName", StringUtils.fromString(describeCacheSecurityGroupsRequest.getCacheSecurityGroupName())); } if (describeCacheSecurityGroupsRequest.getMaxRecords() != null) { request.addParameter("MaxRecords", StringUtils.fromInteger(describeCacheSecurityGroupsRequest.getMaxRecords())); } if (describeCacheSecurityGroupsRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeCacheSecurityGroupsRequest.getMarker())); } return request; }