/** * <p> * The certificate data, in PEM format. * </p> * * @param certificatePem * The certificate data, in PEM format. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateKeysAndCertificateResult withCertificatePem(String certificatePem) { setCertificatePem(certificatePem); return this; }
createKeysAndCertificateResult.setCertificatePem(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The certificate data, in PEM format. * </p> * * @param certificatePem * The certificate data, in PEM format. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateKeysAndCertificateResult withCertificatePem(String certificatePem) { setCertificatePem(certificatePem); return this; }
public CreateKeysAndCertificateResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateKeysAndCertificateResult createKeysAndCertificateResult = new CreateKeysAndCertificateResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("certificateArn")) { createKeysAndCertificateResult.setCertificateArn(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("certificateId")) { createKeysAndCertificateResult.setCertificateId(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("certificatePem")) { createKeysAndCertificateResult.setCertificatePem(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("keyPair")) { createKeysAndCertificateResult.setKeyPair(KeyPairJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return createKeysAndCertificateResult; }
public CreateKeysAndCertificateResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateKeysAndCertificateResult createKeysAndCertificateResult = new CreateKeysAndCertificateResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("certificateArn")) { createKeysAndCertificateResult.setCertificateArn(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("certificateId")) { createKeysAndCertificateResult.setCertificateId(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("certificatePem")) { createKeysAndCertificateResult.setCertificatePem(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("keyPair")) { createKeysAndCertificateResult.setKeyPair(KeyPairJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return createKeysAndCertificateResult; }
createKeysAndCertificateResult.setCertificatePem(context.getUnmarshaller(String.class).unmarshall(context));