@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getChangeSetName() == null) ? 0 : getChangeSetName().hashCode()); hashCode = prime * hashCode + ((getStackName() == null) ? 0 : getStackName().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().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 (getChangeSetName() != null) sb.append("ChangeSetName: ").append(getChangeSetName()).append(","); if (getStackName() != null) sb.append("StackName: ").append(getStackName()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ExecuteChangeSetRequest == false) return false; ExecuteChangeSetRequest other = (ExecuteChangeSetRequest) obj; if (other.getChangeSetName() == null ^ this.getChangeSetName() == null) return false; if (other.getChangeSetName() != null && other.getChangeSetName().equals(this.getChangeSetName()) == false) return false; if (other.getStackName() == null ^ this.getStackName() == null) return false; if (other.getStackName() != null && other.getStackName().equals(this.getStackName()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; return true; }
public Request<ExecuteChangeSetRequest> marshall(ExecuteChangeSetRequest executeChangeSetRequest) { if (executeChangeSetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ExecuteChangeSetRequest> request = new DefaultRequest<ExecuteChangeSetRequest>(executeChangeSetRequest, "AmazonCloudFormation"); request.addParameter("Action", "ExecuteChangeSet"); request.addParameter("Version", "2010-05-15"); request.setHttpMethod(HttpMethodName.POST); if (executeChangeSetRequest.getChangeSetName() != null) { request.addParameter("ChangeSetName", StringUtils.fromString(executeChangeSetRequest.getChangeSetName())); } if (executeChangeSetRequest.getStackName() != null) { request.addParameter("StackName", StringUtils.fromString(executeChangeSetRequest.getStackName())); } if (executeChangeSetRequest.getClientRequestToken() != null) { request.addParameter("ClientRequestToken", StringUtils.fromString(executeChangeSetRequest.getClientRequestToken())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getChangeSetName() == null) ? 0 : getChangeSetName().hashCode()); hashCode = prime * hashCode + ((getStackName() == null) ? 0 : getStackName().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().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 (getChangeSetName() != null) sb.append("ChangeSetName: ").append(getChangeSetName()).append(","); if (getStackName() != null) sb.append("StackName: ").append(getStackName()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ExecuteChangeSetRequest == false) return false; ExecuteChangeSetRequest other = (ExecuteChangeSetRequest) obj; if (other.getChangeSetName() == null ^ this.getChangeSetName() == null) return false; if (other.getChangeSetName() != null && other.getChangeSetName().equals(this.getChangeSetName()) == false) return false; if (other.getStackName() == null ^ this.getStackName() == null) return false; if (other.getStackName() != null && other.getStackName().equals(this.getStackName()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; return true; }
public Request<ExecuteChangeSetRequest> marshall(ExecuteChangeSetRequest executeChangeSetRequest) { if (executeChangeSetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ExecuteChangeSetRequest> request = new DefaultRequest<ExecuteChangeSetRequest>(executeChangeSetRequest, "AmazonCloudFormation"); request.addParameter("Action", "ExecuteChangeSet"); request.addParameter("Version", "2010-05-15"); request.setHttpMethod(HttpMethodName.POST); if (executeChangeSetRequest.getChangeSetName() != null) { request.addParameter("ChangeSetName", StringUtils.fromString(executeChangeSetRequest.getChangeSetName())); } if (executeChangeSetRequest.getStackName() != null) { request.addParameter("StackName", StringUtils.fromString(executeChangeSetRequest.getStackName())); } if (executeChangeSetRequest.getClientRequestToken() != null) { request.addParameter("ClientRequestToken", StringUtils.fromString(executeChangeSetRequest.getClientRequestToken())); } return request; }