public CACertificateDescription unmarshall(JsonUnmarshallerContext context) throws Exception { CACertificateDescription cACertificateDescription = new CACertificateDescription(); if (context.testExpression("certificateArn", targetDepth)) { context.nextToken(); cACertificateDescription.setCertificateArn(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setCertificateId(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setCertificatePem(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setOwnedBy(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setCreationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); cACertificateDescription.setAutoRegistrationStatus(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setLastModifiedDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); cACertificateDescription.setCustomerVersion(context.getUnmarshaller(Integer.class).unmarshall(context)); cACertificateDescription.setGenerationId(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setValidity(CertificateValidityJsonUnmarshaller.getInstance().unmarshall(context));
@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 + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCertificatePem() == null) ? 0 : getCertificatePem().hashCode()); hashCode = prime * hashCode + ((getOwnedBy() == null) ? 0 : getOwnedBy().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getAutoRegistrationStatus() == null) ? 0 : getAutoRegistrationStatus().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getCustomerVersion() == null) ? 0 : getCustomerVersion().hashCode()); hashCode = prime * hashCode + ((getGenerationId() == null) ? 0 : getGenerationId().hashCode()); hashCode = prime * hashCode + ((getValidity() == null) ? 0 : getValidity().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCACertificateResult == false) return false; DescribeCACertificateResult other = (DescribeCACertificateResult) obj; if (other.getCertificateDescription() == null ^ this.getCertificateDescription() == null) return false; if (other.getCertificateDescription() != null && other.getCertificateDescription().equals(this.getCertificateDescription()) == false) return false; if (other.getRegistrationConfig() == null ^ this.getRegistrationConfig() == null) return false; if (other.getRegistrationConfig() != null && other.getRegistrationConfig().equals(this.getRegistrationConfig()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCACertificateResult == false) return false; DescribeCACertificateResult other = (DescribeCACertificateResult) obj; if (other.getCertificateDescription() == null ^ this.getCertificateDescription() == null) return false; if (other.getCertificateDescription() != null && other.getCertificateDescription().equals(this.getCertificateDescription()) == false) return false; if (other.getRegistrationConfig() == null ^ this.getRegistrationConfig() == null) return false; if (other.getRegistrationConfig() != null && other.getRegistrationConfig().equals(this.getRegistrationConfig()) == false) return false; return true; } }
return false; CACertificateDescription other = (CACertificateDescription) 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.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.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getAutoRegistrationStatus() == null ^ this.getAutoRegistrationStatus() == null) return false; if (other.getAutoRegistrationStatus() != null && other.getAutoRegistrationStatus().equals(this.getAutoRegistrationStatus()) == false)
CACertificateDescription cACertificateDescription = new CACertificateDescription(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("certificateArn")) { cACertificateDescription.setCertificateArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("certificateId")) { cACertificateDescription.setCertificateId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("status")) { cACertificateDescription.setStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("certificatePem")) { cACertificateDescription.setCertificatePem(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("ownedBy")) { cACertificateDescription.setOwnedBy(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("creationDate")) { cACertificateDescription.setCreationDate(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("autoRegistrationStatus")) { cACertificateDescription.setAutoRegistrationStatus(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("lastModifiedDate")) { cACertificateDescription.setLastModifiedDate(DateJsonUnmarshaller.getInstance() .unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCACertificateResult == false) return false; DescribeCACertificateResult other = (DescribeCACertificateResult) obj; if (other.getCertificateDescription() == null ^ this.getCertificateDescription() == null) return false; if (other.getCertificateDescription() != null && other.getCertificateDescription().equals(this.getCertificateDescription()) == false) return false; if (other.getRegistrationConfig() == null ^ this.getRegistrationConfig() == null) return false; if (other.getRegistrationConfig() != null && other.getRegistrationConfig().equals(this.getRegistrationConfig()) == 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 (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 (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getAutoRegistrationStatus() != null) sb.append("AutoRegistrationStatus: ").append(getAutoRegistrationStatus()).append(","); if (getLastModifiedDate() != null) sb.append("LastModifiedDate: ").append(getLastModifiedDate()).append(","); if (getCustomerVersion() != null) sb.append("CustomerVersion: ").append(getCustomerVersion()).append(","); if (getGenerationId() != null) sb.append("GenerationId: ").append(getGenerationId()).append(","); if (getValidity() != null) sb.append("Validity: ").append(getValidity()); sb.append("}"); return sb.toString();
CACertificateDescription cACertificateDescription = new CACertificateDescription(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("certificateArn")) { cACertificateDescription.setCertificateArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("certificateId")) { cACertificateDescription.setCertificateId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("status")) { cACertificateDescription.setStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("certificatePem")) { cACertificateDescription.setCertificatePem(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("ownedBy")) { cACertificateDescription.setOwnedBy(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("creationDate")) { cACertificateDescription.setCreationDate(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("autoRegistrationStatus")) { cACertificateDescription.setAutoRegistrationStatus(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("lastModifiedDate")) { cACertificateDescription.setLastModifiedDate(DateJsonUnmarshaller.getInstance() .unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCACertificateResult == false) return false; DescribeCACertificateResult other = (DescribeCACertificateResult) obj; if (other.getCertificateDescription() == null ^ this.getCertificateDescription() == null) return false; if (other.getCertificateDescription() != null && other.getCertificateDescription().equals(this.getCertificateDescription()) == false) return false; if (other.getRegistrationConfig() == null ^ this.getRegistrationConfig() == null) return false; if (other.getRegistrationConfig() != null && other.getRegistrationConfig().equals(this.getRegistrationConfig()) == false) return false; return true; } }
/** * Marshall the given parameter object. */ public void marshall(CACertificateDescription cACertificateDescription, ProtocolMarshaller protocolMarshaller) { if (cACertificateDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(cACertificateDescription.getCertificateArn(), CERTIFICATEARN_BINDING); protocolMarshaller.marshall(cACertificateDescription.getCertificateId(), CERTIFICATEID_BINDING); protocolMarshaller.marshall(cACertificateDescription.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(cACertificateDescription.getCertificatePem(), CERTIFICATEPEM_BINDING); protocolMarshaller.marshall(cACertificateDescription.getOwnedBy(), OWNEDBY_BINDING); protocolMarshaller.marshall(cACertificateDescription.getCreationDate(), CREATIONDATE_BINDING); protocolMarshaller.marshall(cACertificateDescription.getAutoRegistrationStatus(), AUTOREGISTRATIONSTATUS_BINDING); protocolMarshaller.marshall(cACertificateDescription.getLastModifiedDate(), LASTMODIFIEDDATE_BINDING); protocolMarshaller.marshall(cACertificateDescription.getCustomerVersion(), CUSTOMERVERSION_BINDING); protocolMarshaller.marshall(cACertificateDescription.getGenerationId(), GENERATIONID_BINDING); protocolMarshaller.marshall(cACertificateDescription.getValidity(), VALIDITY_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public CACertificateDescription unmarshall(JsonUnmarshallerContext context) throws Exception { CACertificateDescription cACertificateDescription = new CACertificateDescription(); if (context.testExpression("certificateArn", targetDepth)) { context.nextToken(); cACertificateDescription.setCertificateArn(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setCertificateId(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setCertificatePem(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setOwnedBy(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setCreationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); cACertificateDescription.setAutoRegistrationStatus(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setLastModifiedDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); cACertificateDescription.setCustomerVersion(context.getUnmarshaller(Integer.class).unmarshall(context)); cACertificateDescription.setGenerationId(context.getUnmarshaller(String.class).unmarshall(context)); cACertificateDescription.setValidity(CertificateValidityJsonUnmarshaller.getInstance().unmarshall(context));
@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 + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCertificatePem() == null) ? 0 : getCertificatePem().hashCode()); hashCode = prime * hashCode + ((getOwnedBy() == null) ? 0 : getOwnedBy().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getAutoRegistrationStatus() == null) ? 0 : getAutoRegistrationStatus() .hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getCustomerVersion() == null) ? 0 : getCustomerVersion().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 (getStatus() != null) sb.append("status: " + getStatus() + ","); if (getCertificatePem() != null) sb.append("certificatePem: " + getCertificatePem() + ","); if (getOwnedBy() != null) sb.append("ownedBy: " + getOwnedBy() + ","); if (getCreationDate() != null) sb.append("creationDate: " + getCreationDate() + ","); if (getAutoRegistrationStatus() != null) sb.append("autoRegistrationStatus: " + getAutoRegistrationStatus() + ","); if (getLastModifiedDate() != null) sb.append("lastModifiedDate: " + getLastModifiedDate() + ","); if (getCustomerVersion() != null) sb.append("customerVersion: " + getCustomerVersion() + ","); if (getGenerationId() != null) sb.append("generationId: " + getGenerationId() + ","); if (getValidity() != null) sb.append("validity: " + getValidity()); sb.append("}"); return sb.toString();
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.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.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getAutoRegistrationStatus() == null ^ this.getAutoRegistrationStatus() == null)
public void marshall(CACertificateDescription cACertificateDescription, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (cACertificateDescription.getCertificateArn() != null) { String certificateArn = cACertificateDescription.getCertificateArn(); jsonWriter.name("certificateArn"); jsonWriter.value(certificateArn); if (cACertificateDescription.getCertificateId() != null) { String certificateId = cACertificateDescription.getCertificateId(); jsonWriter.name("certificateId"); jsonWriter.value(certificateId); if (cACertificateDescription.getStatus() != null) { String status = cACertificateDescription.getStatus(); jsonWriter.name("status"); jsonWriter.value(status); if (cACertificateDescription.getCertificatePem() != null) { String certificatePem = cACertificateDescription.getCertificatePem(); jsonWriter.name("certificatePem"); jsonWriter.value(certificatePem); if (cACertificateDescription.getOwnedBy() != null) { String ownedBy = cACertificateDescription.getOwnedBy(); jsonWriter.name("ownedBy"); jsonWriter.value(ownedBy); if (cACertificateDescription.getCreationDate() != null) { java.util.Date creationDate = cACertificateDescription.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 + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCertificatePem() == null) ? 0 : getCertificatePem().hashCode()); hashCode = prime * hashCode + ((getOwnedBy() == null) ? 0 : getOwnedBy().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getAutoRegistrationStatus() == null) ? 0 : getAutoRegistrationStatus().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getCustomerVersion() == null) ? 0 : getCustomerVersion().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 + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCertificatePem() == null) ? 0 : getCertificatePem().hashCode()); hashCode = prime * hashCode + ((getOwnedBy() == null) ? 0 : getOwnedBy().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getAutoRegistrationStatus() == null) ? 0 : getAutoRegistrationStatus() .hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getCustomerVersion() == null) ? 0 : getCustomerVersion().hashCode()); hashCode = prime * hashCode + ((getGenerationId() == null) ? 0 : getGenerationId().hashCode()); hashCode = prime * hashCode + ((getValidity() == null) ? 0 : getValidity().hashCode()); return hashCode; }
return false; CACertificateDescription other = (CACertificateDescription) 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.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.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getAutoRegistrationStatus() == null ^ this.getAutoRegistrationStatus() == null) return false; if (other.getAutoRegistrationStatus() != null && other.getAutoRegistrationStatus().equals(this.getAutoRegistrationStatus()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCertificateArn() != null) sb.append("certificateArn: " + getCertificateArn() + ","); if (getCertificateId() != null) sb.append("certificateId: " + getCertificateId() + ","); if (getStatus() != null) sb.append("status: " + getStatus() + ","); if (getCertificatePem() != null) sb.append("certificatePem: " + getCertificatePem() + ","); if (getOwnedBy() != null) sb.append("ownedBy: " + getOwnedBy() + ","); if (getCreationDate() != null) sb.append("creationDate: " + getCreationDate() + ","); if (getAutoRegistrationStatus() != null) sb.append("autoRegistrationStatus: " + getAutoRegistrationStatus() + ","); if (getLastModifiedDate() != null) sb.append("lastModifiedDate: " + getLastModifiedDate() + ","); if (getCustomerVersion() != null) sb.append("customerVersion: " + getCustomerVersion() + ","); if (getGenerationId() != null) sb.append("generationId: " + getGenerationId() + ","); if (getValidity() != null) sb.append("validity: " + getValidity()); sb.append("}"); return sb.toString();