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(",");
@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; }
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) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null)
/** * 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); } }
if (getOwnedBy() != null) sb.append("ownedBy: " + getOwnedBy() + ","); if (getPreviousOwnedBy() != null) sb.append("previousOwnedBy: " + getPreviousOwnedBy() + ","); if (getCreationDate() != null) sb.append("creationDate: " + getCreationDate() + ",");
@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; }
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) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null)
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(",");
jsonWriter.value(ownedBy); if (certificateDescription.getPreviousOwnedBy() != null) { String previousOwnedBy = certificateDescription.getPreviousOwnedBy(); jsonWriter.name("previousOwnedBy"); jsonWriter.value(previousOwnedBy);
if (getOwnedBy() != null) sb.append("ownedBy: " + getOwnedBy() + ","); if (getPreviousOwnedBy() != null) sb.append("previousOwnedBy: " + getPreviousOwnedBy() + ","); if (getCreationDate() != null) sb.append("creationDate: " + getCreationDate() + ",");
@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; }
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) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null)
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) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null)
/** * 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); } }
jsonWriter.value(ownedBy); if (certificateDescription.getPreviousOwnedBy() != null) { String previousOwnedBy = certificateDescription.getPreviousOwnedBy(); jsonWriter.name("previousOwnedBy"); jsonWriter.value(previousOwnedBy);