@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getNewStatus() == null) ? 0 : getNewStatus().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 (getCertificateId() != null) sb.append("CertificateId: ").append(getCertificateId()).append(","); if (getNewStatus() != null) sb.append("NewStatus: ").append(getNewStatus()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateCertificateRequest == false) return false; UpdateCertificateRequest other = (UpdateCertificateRequest) obj; if (other.getCertificateId() == null ^ this.getCertificateId() == null) return false; if (other.getCertificateId() != null && other.getCertificateId().equals(this.getCertificateId()) == false) return false; if (other.getNewStatus() == null ^ this.getNewStatus() == null) return false; if (other.getNewStatus() != null && other.getNewStatus().equals(this.getNewStatus()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(UpdateCertificateRequest updateCertificateRequest, ProtocolMarshaller protocolMarshaller) { if (updateCertificateRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(updateCertificateRequest.getCertificateId(), CERTIFICATEID_BINDING); protocolMarshaller.marshall(updateCertificateRequest.getNewStatus(), NEWSTATUS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getNewStatus() == null) ? 0 : getNewStatus().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 (getCertificateId() != null) sb.append("certificateId: " + getCertificateId() + ","); if (getNewStatus() != null) sb.append("newStatus: " + getNewStatus()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateCertificateRequest == false) return false; UpdateCertificateRequest other = (UpdateCertificateRequest) obj; if (other.getCertificateId() == null ^ this.getCertificateId() == null) return false; if (other.getCertificateId() != null && other.getCertificateId().equals(this.getCertificateId()) == false) return false; if (other.getNewStatus() == null ^ this.getNewStatus() == null) return false; if (other.getNewStatus() != null && other.getNewStatus().equals(this.getNewStatus()) == false) return false; return true; } }
public Request<UpdateCertificateRequest> marshall( UpdateCertificateRequest updateCertificateRequest) { if (updateCertificateRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(UpdateCertificateRequest)"); } Request<UpdateCertificateRequest> request = new DefaultRequest<UpdateCertificateRequest>( updateCertificateRequest, "AWSIot"); request.setHttpMethod(HttpMethodName.PUT); String uriResourcePath = "/certificates/{certificateId}"; uriResourcePath = uriResourcePath.replace( "{certificateId}", (updateCertificateRequest.getCertificateId() == null) ? "" : StringUtils .fromString(updateCertificateRequest.getCertificateId())); if (updateCertificateRequest.getNewStatus() != null) { request.addParameter("newStatus", StringUtils.fromString(updateCertificateRequest.getNewStatus())); } request.setResourcePath(uriResourcePath); request.addHeader("Content-Length", "0"); request.setContent(new ByteArrayInputStream(new byte[0])); if (!request.getHeaders().containsKey("Content-Type")) { request.addHeader("Content-Type", "application/x-amz-json-1.0"); } return request; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getNewStatus() == null) ? 0 : getNewStatus().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getNewStatus() == null) ? 0 : getNewStatus().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 (getCertificateId() != null) sb.append("certificateId: " + getCertificateId() + ","); if (getNewStatus() != null) sb.append("newStatus: " + getNewStatus()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateCertificateRequest == false) return false; UpdateCertificateRequest other = (UpdateCertificateRequest) obj; if (other.getCertificateId() == null ^ this.getCertificateId() == null) return false; if (other.getCertificateId() != null && other.getCertificateId().equals(this.getCertificateId()) == false) return false; if (other.getNewStatus() == null ^ this.getNewStatus() == null) return false; if (other.getNewStatus() != null && other.getNewStatus().equals(this.getNewStatus()) == 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 (getCertificateId() != null) sb.append("CertificateId: ").append(getCertificateId()).append(","); if (getNewStatus() != null) sb.append("NewStatus: ").append(getNewStatus()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateCertificateRequest == false) return false; UpdateCertificateRequest other = (UpdateCertificateRequest) obj; if (other.getCertificateId() == null ^ this.getCertificateId() == null) return false; if (other.getCertificateId() != null && other.getCertificateId().equals(this.getCertificateId()) == false) return false; if (other.getNewStatus() == null ^ this.getNewStatus() == null) return false; if (other.getNewStatus() != null && other.getNewStatus().equals(this.getNewStatus()) == false) return false; return true; } }
/** * Marshall the given parameter object. */ public void marshall(UpdateCertificateRequest updateCertificateRequest, ProtocolMarshaller protocolMarshaller) { if (updateCertificateRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(updateCertificateRequest.getCertificateId(), CERTIFICATEID_BINDING); protocolMarshaller.marshall(updateCertificateRequest.getNewStatus(), NEWSTATUS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public Request<UpdateCertificateRequest> marshall( UpdateCertificateRequest updateCertificateRequest) { if (updateCertificateRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(UpdateCertificateRequest)"); } Request<UpdateCertificateRequest> request = new DefaultRequest<UpdateCertificateRequest>( updateCertificateRequest, "AWSIot"); request.setHttpMethod(HttpMethodName.PUT); String uriResourcePath = "/certificates/{certificateId}"; uriResourcePath = uriResourcePath.replace( "{certificateId}", (updateCertificateRequest.getCertificateId() == null) ? "" : StringUtils .fromString(updateCertificateRequest.getCertificateId())); if (updateCertificateRequest.getNewStatus() != null) { request.addParameter("newStatus", StringUtils.fromString(updateCertificateRequest.getNewStatus())); } request.setResourcePath(uriResourcePath); request.addHeader("Content-Length", "0"); request.setContent(new ByteArrayInputStream(new byte[0])); if (!request.getHeaders().containsKey("Content-Type")) { request.addHeader("Content-Type", "application/x-amz-json-1.0"); } return request; } }