/** * <p> * The generated key pair. * </p> * * @param keyPair * The generated key pair. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateKeysAndCertificateResult withKeyPair(KeyPair keyPair) { setKeyPair(keyPair); return this; }
createKeysAndCertificateResult.setKeyPair(KeyPairJsonUnmarshaller.getInstance().unmarshall(context));
/** * <p> * The generated key pair. * </p> * * @param keyPair * The generated key pair. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateKeysAndCertificateResult withKeyPair(KeyPair keyPair) { setKeyPair(keyPair); 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.setKeyPair(KeyPairJsonUnmarshaller.getInstance().unmarshall(context));