@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; }
/** * <p> * The maximum number of results to be returned with a single call. If the number of available results exceeds this * maximum, the response includes a <code>NextToken</code> value that you can assign to the <code>NextToken</code> * request parameter to get the next set of results. * </p> * * @param maxResults * The maximum number of results to be returned with a single call. If the number of available results * exceeds this maximum, the response includes a <code>NextToken</code> value that you can assign to the * <code>NextToken</code> request parameter to get the next set of results. * @return Returns a reference to this object so that method calls can be chained together. */ public ListStackSetsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; }
/** * <p> * If the previous paginated request didn't return all of the remaining results, the response object's * <code>NextToken</code> parameter value is set to a token. To retrieve the next set of results, call * <code>ListStackSets</code> again and assign that token to the request object's <code>NextToken</code> parameter. * If there are no remaining results, the previous response object's <code>NextToken</code> parameter is set to * <code>null</code>. * </p> * * @param nextToken * If the previous paginated request didn't return all of the remaining results, the response object's * <code>NextToken</code> parameter value is set to a token. To retrieve the next set of results, call * <code>ListStackSets</code> again and assign that token to the request object's <code>NextToken</code> * parameter. If there are no remaining results, the previous response object's <code>NextToken</code> * parameter is set to <code>null</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ListStackSetsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; }
/** * <p> * The status of the stack sets that you want to get summary information about. * </p> * * @param status * The status of the stack sets that you want to get summary information about. * @see StackSetStatus */ public void setStatus(StackSetStatus status) { withStatus(status); }
/** * <p> * The status of the stack sets that you want to get summary information about. * </p> * * @param status * The status of the stack sets that you want to get summary information about. * @return Returns a reference to this object so that method calls can be chained together. * @see StackSetStatus */ public ListStackSetsRequest withStatus(String status) { setStatus(status); return this; }
/** * <p> * The status of the stack sets that you want to get summary information about. * </p> * * @param status * The status of the stack sets that you want to get summary information about. * @see StackSetStatus */ public void setStatus(StackSetStatus status) { withStatus(status); }
/** * <p> * The status of the stack sets that you want to get summary information about. * </p> * * @param status * The status of the stack sets that you want to get summary information about. * @return Returns a reference to this object so that method calls can be chained together. * @see StackSetStatus */ public ListStackSetsRequest withStatus(String status) { setStatus(status); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListStackSetsRequest == false) return false; ListStackSetsRequest other = (ListStackSetsRequest) obj; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; }
/** * <p> * The maximum number of results to be returned with a single call. If the number of available results exceeds this * maximum, the response includes a <code>NextToken</code> value that you can assign to the <code>NextToken</code> * request parameter to get the next set of results. * </p> * * @param maxResults * The maximum number of results to be returned with a single call. If the number of available results * exceeds this maximum, the response includes a <code>NextToken</code> value that you can assign to the * <code>NextToken</code> request parameter to get the next set of results. * @return Returns a reference to this object so that method calls can be chained together. */ public ListStackSetsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; }
/** * <p> * If the previous paginated request didn't return all of the remaining results, the response object's * <code>NextToken</code> parameter value is set to a token. To retrieve the next set of results, call * <code>ListStackSets</code> again and assign that token to the request object's <code>NextToken</code> parameter. * If there are no remaining results, the previous response object's <code>NextToken</code> parameter is set to * <code>null</code>. * </p> * * @param nextToken * If the previous paginated request didn't return all of the remaining results, the response object's * <code>NextToken</code> parameter value is set to a token. To retrieve the next set of results, call * <code>ListStackSets</code> again and assign that token to the request object's <code>NextToken</code> * parameter. If there are no remaining results, the previous response object's <code>NextToken</code> * parameter is set to <code>null</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ListStackSetsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; }
/** * 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 (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); }
public Request<ListStackSetsRequest> marshall(ListStackSetsRequest listStackSetsRequest) { if (listStackSetsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListStackSetsRequest> request = new DefaultRequest<ListStackSetsRequest>(listStackSetsRequest, "AmazonCloudFormation"); request.addParameter("Action", "ListStackSets"); request.addParameter("Version", "2010-05-15"); request.setHttpMethod(HttpMethodName.POST); if (listStackSetsRequest.getNextToken() != null) { request.addParameter("NextToken", StringUtils.fromString(listStackSetsRequest.getNextToken())); } if (listStackSetsRequest.getMaxResults() != null) { request.addParameter("MaxResults", StringUtils.fromInteger(listStackSetsRequest.getMaxResults())); } if (listStackSetsRequest.getStatus() != null) { request.addParameter("Status", StringUtils.fromString(listStackSetsRequest.getStatus())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListStackSetsRequest == false) return false; ListStackSetsRequest other = (ListStackSetsRequest) obj; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; }
/** * 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 (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); }
public Request<ListStackSetsRequest> marshall(ListStackSetsRequest listStackSetsRequest) { if (listStackSetsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListStackSetsRequest> request = new DefaultRequest<ListStackSetsRequest>(listStackSetsRequest, "AmazonCloudFormation"); request.addParameter("Action", "ListStackSets"); request.addParameter("Version", "2010-05-15"); request.setHttpMethod(HttpMethodName.POST); if (listStackSetsRequest.getNextToken() != null) { request.addParameter("NextToken", StringUtils.fromString(listStackSetsRequest.getNextToken())); } if (listStackSetsRequest.getMaxResults() != null) { request.addParameter("MaxResults", StringUtils.fromInteger(listStackSetsRequest.getMaxResults())); } if (listStackSetsRequest.getStatus() != null) { request.addParameter("Status", StringUtils.fromString(listStackSetsRequest.getStatus())); } return request; }