public CertificateDescription unmarshall(JsonUnmarshallerContext context) throws Exception { CertificateDescription certificateDescription = new CertificateDescription(); AwsJsonReader reader = context.getReader(); 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("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("creationDate")) { certificateDescription.setCreationDate( DateJsonUnmarshaller.getInstance().unmarshall(context)); } else if (name.equals("lastModifiedDate")) { certificateDescription.setLastModifiedDate( DateJsonUnmarshaller.getInstance().unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return certificateDescription; }