/** * 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; }
/** * 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; }