@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getLatest() == null) ? 0 : getLatest().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 (getInstanceId() != null) sb.append("InstanceId: ").append(getInstanceId()).append(","); if (getLatest() != null) sb.append("Latest: ").append(getLatest()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetConsoleOutputRequest == false) return false; GetConsoleOutputRequest other = (GetConsoleOutputRequest) obj; if (other.getInstanceId() == null ^ this.getInstanceId() == null) return false; if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false) return false; if (other.getLatest() == null ^ this.getLatest() == null) return false; if (other.getLatest() != null && other.getLatest().equals(this.getLatest()) == false) return false; return true; }
public Request<GetConsoleOutputRequest> marshall(GetConsoleOutputRequest getConsoleOutputRequest) { if (getConsoleOutputRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<GetConsoleOutputRequest> request = new DefaultRequest<GetConsoleOutputRequest>(getConsoleOutputRequest, "AmazonEC2"); request.addParameter("Action", "GetConsoleOutput"); request.addParameter("Version", "2016-11-15"); request.setHttpMethod(HttpMethodName.POST); if (getConsoleOutputRequest.getInstanceId() != null) { request.addParameter("InstanceId", StringUtils.fromString(getConsoleOutputRequest.getInstanceId())); } if (getConsoleOutputRequest.getLatest() != null) { request.addParameter("Latest", StringUtils.fromBoolean(getConsoleOutputRequest.getLatest())); } return request; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetConsoleOutputRequest == false) return false; GetConsoleOutputRequest other = (GetConsoleOutputRequest)obj; if (other.getInstanceId() == null ^ this.getInstanceId() == null) return false; if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().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 (getInstanceId() != null) sb.append("InstanceId: " + getInstanceId() ); sb.append("}"); return sb.toString(); }
public Request<GetConsoleOutputRequest> marshall(GetConsoleOutputRequest getConsoleOutputRequest) { if (getConsoleOutputRequest == null) { throw new AmazonClientException("Invalid argument passed to marshall(...)"); } Request<GetConsoleOutputRequest> request = new DefaultRequest<GetConsoleOutputRequest>(getConsoleOutputRequest, "AmazonEC2"); request.addParameter("Action", "GetConsoleOutput"); request.addParameter("Version", "2015-10-01"); if (getConsoleOutputRequest.getInstanceId() != null) { request.addParameter("InstanceId", StringUtils.fromString(getConsoleOutputRequest.getInstanceId())); } return request; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode()); hashCode = prime * hashCode + ((getLatest() == null) ? 0 : getLatest().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 (getInstanceId() != null) sb.append("InstanceId: ").append(getInstanceId()).append(","); if (getLatest() != null) sb.append("Latest: ").append(getLatest()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetConsoleOutputRequest == false) return false; GetConsoleOutputRequest other = (GetConsoleOutputRequest) obj; if (other.getInstanceId() == null ^ this.getInstanceId() == null) return false; if (other.getInstanceId() != null && other.getInstanceId().equals(this.getInstanceId()) == false) return false; if (other.getLatest() == null ^ this.getLatest() == null) return false; if (other.getLatest() != null && other.getLatest().equals(this.getLatest()) == false) return false; return true; }
public Request<GetConsoleOutputRequest> marshall(GetConsoleOutputRequest getConsoleOutputRequest) { if (getConsoleOutputRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<GetConsoleOutputRequest> request = new DefaultRequest<GetConsoleOutputRequest>(getConsoleOutputRequest, "AmazonEC2"); request.addParameter("Action", "GetConsoleOutput"); request.addParameter("Version", "2016-11-15"); request.setHttpMethod(HttpMethodName.POST); if (getConsoleOutputRequest.getInstanceId() != null) { request.addParameter("InstanceId", StringUtils.fromString(getConsoleOutputRequest.getInstanceId())); } if (getConsoleOutputRequest.getLatest() != null) { request.addParameter("Latest", StringUtils.fromBoolean(getConsoleOutputRequest.getLatest())); } return request; }