public CertificateDescription unmarshall(JsonUnmarshallerContext context) throws Exception { CertificateDescription certificateDescription = new CertificateDescription(); if (context.testExpression("certificateArn", targetDepth)) { context.nextToken(); certificateDescription.setCertificateArn(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setCertificateId(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setCaCertificateId(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setCertificatePem(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setOwnedBy(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setPreviousOwnedBy(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setCreationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); certificateDescription.setLastModifiedDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); certificateDescription.setCustomerVersion(context.getUnmarshaller(Integer.class).unmarshall(context)); certificateDescription.setTransferData(TransferDataJsonUnmarshaller.getInstance().unmarshall(context)); certificateDescription.setGenerationId(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setValidity(CertificateValidityJsonUnmarshaller.getInstance().unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCertificateResult == false) return false; DescribeCertificateResult other = (DescribeCertificateResult) obj; if (other.getCertificateDescription() == null ^ this.getCertificateDescription() == null) return false; if (other.getCertificateDescription() != null && other.getCertificateDescription().equals(this.getCertificateDescription()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode()); hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getCaCertificateId() == null) ? 0 : getCaCertificateId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCertificatePem() == null) ? 0 : getCertificatePem().hashCode()); hashCode = prime * hashCode + ((getOwnedBy() == null) ? 0 : getOwnedBy().hashCode()); hashCode = prime * hashCode + ((getPreviousOwnedBy() == null) ? 0 : getPreviousOwnedBy().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getCustomerVersion() == null) ? 0 : getCustomerVersion().hashCode()); hashCode = prime * hashCode + ((getTransferData() == null) ? 0 : getTransferData().hashCode()); hashCode = prime * hashCode + ((getGenerationId() == null) ? 0 : getGenerationId().hashCode()); hashCode = prime * hashCode + ((getValidity() == null) ? 0 : getValidity().hashCode()); return hashCode; }
return false; CertificateDescription other = (CertificateDescription) obj; if (other.getCertificateArn() == null ^ this.getCertificateArn() == null) return false; if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false) return false; if (other.getCertificateId() == null ^ this.getCertificateId() == null) return false; if (other.getCertificateId() != null && other.getCertificateId().equals(this.getCertificateId()) == false) return false; if (other.getCaCertificateId() == null ^ this.getCaCertificateId() == null) return false; if (other.getCaCertificateId() != null && other.getCaCertificateId().equals(this.getCaCertificateId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCertificatePem() == null ^ this.getCertificatePem() == null) return false; if (other.getCertificatePem() != null && other.getCertificatePem().equals(this.getCertificatePem()) == false) return false; if (other.getOwnedBy() == null ^ this.getOwnedBy() == null) return false; if (other.getOwnedBy() != null && other.getOwnedBy().equals(this.getOwnedBy()) == false) return false; if (other.getPreviousOwnedBy() == null ^ this.getPreviousOwnedBy() == null) return false; if (other.getPreviousOwnedBy() != null && other.getPreviousOwnedBy().equals(this.getPreviousOwnedBy()) == false)
CertificateDescription certificateDescription = new CertificateDescription(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("certificateArn")) { certificateDescription.setCertificateArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("certificateId")) { certificateDescription.setCertificateId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("caCertificateId")) { certificateDescription.setCaCertificateId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("status")) { certificateDescription.setStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("certificatePem")) { certificateDescription.setCertificatePem(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("ownedBy")) { certificateDescription.setOwnedBy(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("previousOwnedBy")) { certificateDescription.setPreviousOwnedBy(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("creationDate")) { certificateDescription.setCreationDate(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("lastModifiedDate")) {
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCertificateResult == false) return false; DescribeCertificateResult other = (DescribeCertificateResult) obj; if (other.getCertificateDescription() == null ^ this.getCertificateDescription() == null) return false; if (other.getCertificateDescription() != null && other.getCertificateDescription().equals(this.getCertificateDescription()) == false) return false; return true; } }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCertificateArn() != null) sb.append("CertificateArn: ").append(getCertificateArn()).append(","); if (getCertificateId() != null) sb.append("CertificateId: ").append(getCertificateId()).append(","); if (getCaCertificateId() != null) sb.append("CaCertificateId: ").append(getCaCertificateId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCertificatePem() != null) sb.append("CertificatePem: ").append(getCertificatePem()).append(","); if (getOwnedBy() != null) sb.append("OwnedBy: ").append(getOwnedBy()).append(","); if (getPreviousOwnedBy() != null) sb.append("PreviousOwnedBy: ").append(getPreviousOwnedBy()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getLastModifiedDate() != null) sb.append("LastModifiedDate: ").append(getLastModifiedDate()).append(","); if (getCustomerVersion() != null) sb.append("CustomerVersion: ").append(getCustomerVersion()).append(","); if (getTransferData() != null) sb.append("TransferData: ").append(getTransferData()).append(","); if (getGenerationId() != null) sb.append("GenerationId: ").append(getGenerationId()).append(","); if (getValidity() != null) sb.append("Validity: ").append(getValidity()); sb.append("}");
CertificateDescription certificateDescription = new CertificateDescription(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("certificateArn")) { certificateDescription.setCertificateArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("certificateId")) { certificateDescription.setCertificateId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("caCertificateId")) { certificateDescription.setCaCertificateId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("status")) { certificateDescription.setStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("certificatePem")) { certificateDescription.setCertificatePem(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("ownedBy")) { certificateDescription.setOwnedBy(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("previousOwnedBy")) { certificateDescription.setPreviousOwnedBy(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("creationDate")) { certificateDescription.setCreationDate(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("lastModifiedDate")) {
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCertificateResult == false) return false; DescribeCertificateResult other = (DescribeCertificateResult) obj; if (other.getCertificateDescription() == null ^ this.getCertificateDescription() == null) return false; if (other.getCertificateDescription() != null && other.getCertificateDescription().equals(this.getCertificateDescription()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(CertificateDescription certificateDescription, ProtocolMarshaller protocolMarshaller) { if (certificateDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(certificateDescription.getCertificateArn(), CERTIFICATEARN_BINDING); protocolMarshaller.marshall(certificateDescription.getCertificateId(), CERTIFICATEID_BINDING); protocolMarshaller.marshall(certificateDescription.getCaCertificateId(), CACERTIFICATEID_BINDING); protocolMarshaller.marshall(certificateDescription.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(certificateDescription.getCertificatePem(), CERTIFICATEPEM_BINDING); protocolMarshaller.marshall(certificateDescription.getOwnedBy(), OWNEDBY_BINDING); protocolMarshaller.marshall(certificateDescription.getPreviousOwnedBy(), PREVIOUSOWNEDBY_BINDING); protocolMarshaller.marshall(certificateDescription.getCreationDate(), CREATIONDATE_BINDING); protocolMarshaller.marshall(certificateDescription.getLastModifiedDate(), LASTMODIFIEDDATE_BINDING); protocolMarshaller.marshall(certificateDescription.getCustomerVersion(), CUSTOMERVERSION_BINDING); protocolMarshaller.marshall(certificateDescription.getTransferData(), TRANSFERDATA_BINDING); protocolMarshaller.marshall(certificateDescription.getGenerationId(), GENERATIONID_BINDING); protocolMarshaller.marshall(certificateDescription.getValidity(), VALIDITY_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public CertificateDescription unmarshall(JsonUnmarshallerContext context) throws Exception { CertificateDescription certificateDescription = new CertificateDescription(); if (context.testExpression("certificateArn", targetDepth)) { context.nextToken(); certificateDescription.setCertificateArn(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setCertificateId(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setCaCertificateId(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setCertificatePem(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setOwnedBy(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setPreviousOwnedBy(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setCreationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); certificateDescription.setLastModifiedDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); certificateDescription.setCustomerVersion(context.getUnmarshaller(Integer.class).unmarshall(context)); certificateDescription.setTransferData(TransferDataJsonUnmarshaller.getInstance().unmarshall(context)); certificateDescription.setGenerationId(context.getUnmarshaller(String.class).unmarshall(context)); certificateDescription.setValidity(CertificateValidityJsonUnmarshaller.getInstance().unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCertificateResult == false) return false; DescribeCertificateResult other = (DescribeCertificateResult) obj; if (other.getCertificateDescription() == null ^ this.getCertificateDescription() == null) return false; if (other.getCertificateDescription() != null && other.getCertificateDescription().equals(this.getCertificateDescription()) == false) return false; return true; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode()); hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getCaCertificateId() == null) ? 0 : getCaCertificateId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCertificatePem() == null) ? 0 : getCertificatePem().hashCode()); hashCode = prime * hashCode + ((getOwnedBy() == null) ? 0 : getOwnedBy().hashCode()); hashCode = prime * hashCode + ((getPreviousOwnedBy() == null) ? 0 : getPreviousOwnedBy().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getCustomerVersion() == null) ? 0 : getCustomerVersion().hashCode()); hashCode = prime * hashCode + ((getTransferData() == null) ? 0 : getTransferData().hashCode()); hashCode = prime * hashCode + ((getGenerationId() == null) ? 0 : getGenerationId().hashCode()); hashCode = prime * hashCode + ((getValidity() == null) ? 0 : getValidity().hashCode()); return hashCode; }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCertificateArn() != null) sb.append("certificateArn: " + getCertificateArn() + ","); if (getCertificateId() != null) sb.append("certificateId: " + getCertificateId() + ","); if (getCaCertificateId() != null) sb.append("caCertificateId: " + getCaCertificateId() + ","); if (getStatus() != null) sb.append("status: " + getStatus() + ","); if (getCertificatePem() != null) sb.append("certificatePem: " + getCertificatePem() + ","); if (getOwnedBy() != null) sb.append("ownedBy: " + getOwnedBy() + ","); if (getPreviousOwnedBy() != null) sb.append("previousOwnedBy: " + getPreviousOwnedBy() + ","); if (getCreationDate() != null) sb.append("creationDate: " + getCreationDate() + ","); if (getLastModifiedDate() != null) sb.append("lastModifiedDate: " + getLastModifiedDate() + ","); if (getCustomerVersion() != null) sb.append("customerVersion: " + getCustomerVersion() + ","); if (getTransferData() != null) sb.append("transferData: " + getTransferData() + ","); if (getGenerationId() != null) sb.append("generationId: " + getGenerationId() + ","); if (getValidity() != null) sb.append("validity: " + getValidity()); sb.append("}");
if (other.getCertificateArn() == null ^ this.getCertificateArn() == null) return false; if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false) return false; if (other.getCertificateId() == null ^ this.getCertificateId() == null) return false; if (other.getCertificateId() != null && other.getCertificateId().equals(this.getCertificateId()) == false) return false; if (other.getCaCertificateId() == null ^ this.getCaCertificateId() == null) return false; if (other.getCaCertificateId() != null && other.getCaCertificateId().equals(this.getCaCertificateId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCertificatePem() == null ^ this.getCertificatePem() == null) return false; if (other.getCertificatePem() != null && other.getCertificatePem().equals(this.getCertificatePem()) == false) return false; if (other.getOwnedBy() == null ^ this.getOwnedBy() == null) return false; if (other.getOwnedBy() != null && other.getOwnedBy().equals(this.getOwnedBy()) == false) return false; if (other.getPreviousOwnedBy() == null ^ this.getPreviousOwnedBy() == null)
public void marshall(CertificateDescription certificateDescription, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (certificateDescription.getCertificateArn() != null) { String certificateArn = certificateDescription.getCertificateArn(); jsonWriter.name("certificateArn"); jsonWriter.value(certificateArn); if (certificateDescription.getCertificateId() != null) { String certificateId = certificateDescription.getCertificateId(); jsonWriter.name("certificateId"); jsonWriter.value(certificateId); if (certificateDescription.getCaCertificateId() != null) { String caCertificateId = certificateDescription.getCaCertificateId(); jsonWriter.name("caCertificateId"); jsonWriter.value(caCertificateId); if (certificateDescription.getStatus() != null) { String status = certificateDescription.getStatus(); jsonWriter.name("status"); jsonWriter.value(status); if (certificateDescription.getCertificatePem() != null) { String certificatePem = certificateDescription.getCertificatePem(); jsonWriter.name("certificatePem"); jsonWriter.value(certificatePem); if (certificateDescription.getOwnedBy() != null) { String ownedBy = certificateDescription.getOwnedBy();
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode()); hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getCaCertificateId() == null) ? 0 : getCaCertificateId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCertificatePem() == null) ? 0 : getCertificatePem().hashCode()); hashCode = prime * hashCode + ((getOwnedBy() == null) ? 0 : getOwnedBy().hashCode()); hashCode = prime * hashCode + ((getPreviousOwnedBy() == null) ? 0 : getPreviousOwnedBy().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getCustomerVersion() == null) ? 0 : getCustomerVersion().hashCode()); hashCode = prime * hashCode + ((getTransferData() == null) ? 0 : getTransferData().hashCode()); hashCode = prime * hashCode + ((getGenerationId() == null) ? 0 : getGenerationId().hashCode()); hashCode = prime * hashCode + ((getValidity() == null) ? 0 : getValidity().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode()); hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getCaCertificateId() == null) ? 0 : getCaCertificateId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCertificatePem() == null) ? 0 : getCertificatePem().hashCode()); hashCode = prime * hashCode + ((getOwnedBy() == null) ? 0 : getOwnedBy().hashCode()); hashCode = prime * hashCode + ((getPreviousOwnedBy() == null) ? 0 : getPreviousOwnedBy().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getCustomerVersion() == null) ? 0 : getCustomerVersion().hashCode()); hashCode = prime * hashCode + ((getTransferData() == null) ? 0 : getTransferData().hashCode()); hashCode = prime * hashCode + ((getGenerationId() == null) ? 0 : getGenerationId().hashCode()); hashCode = prime * hashCode + ((getValidity() == null) ? 0 : getValidity().hashCode()); return hashCode; }
return false; CertificateDescription other = (CertificateDescription) obj; if (other.getCertificateArn() == null ^ this.getCertificateArn() == null) return false; if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false) return false; if (other.getCertificateId() == null ^ this.getCertificateId() == null) return false; if (other.getCertificateId() != null && other.getCertificateId().equals(this.getCertificateId()) == false) return false; if (other.getCaCertificateId() == null ^ this.getCaCertificateId() == null) return false; if (other.getCaCertificateId() != null && other.getCaCertificateId().equals(this.getCaCertificateId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCertificatePem() == null ^ this.getCertificatePem() == null) return false; if (other.getCertificatePem() != null && other.getCertificatePem().equals(this.getCertificatePem()) == false) return false; if (other.getOwnedBy() == null ^ this.getOwnedBy() == null) return false; if (other.getOwnedBy() != null && other.getOwnedBy().equals(this.getOwnedBy()) == false) return false; if (other.getPreviousOwnedBy() == null ^ this.getPreviousOwnedBy() == null) return false; if (other.getPreviousOwnedBy() != null && other.getPreviousOwnedBy().equals(this.getPreviousOwnedBy()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCertificateArn() != null) sb.append("certificateArn: " + getCertificateArn() + ","); if (getCertificateId() != null) sb.append("certificateId: " + getCertificateId() + ","); if (getCaCertificateId() != null) sb.append("caCertificateId: " + getCaCertificateId() + ","); if (getStatus() != null) sb.append("status: " + getStatus() + ","); if (getCertificatePem() != null) sb.append("certificatePem: " + getCertificatePem() + ","); if (getOwnedBy() != null) sb.append("ownedBy: " + getOwnedBy() + ","); if (getPreviousOwnedBy() != null) sb.append("previousOwnedBy: " + getPreviousOwnedBy() + ","); if (getCreationDate() != null) sb.append("creationDate: " + getCreationDate() + ","); if (getLastModifiedDate() != null) sb.append("lastModifiedDate: " + getLastModifiedDate() + ","); if (getCustomerVersion() != null) sb.append("customerVersion: " + getCustomerVersion() + ","); if (getTransferData() != null) sb.append("transferData: " + getTransferData() + ","); if (getGenerationId() != null) sb.append("generationId: " + getGenerationId() + ","); if (getValidity() != null) sb.append("validity: " + getValidity()); sb.append("}");