/** * <p> * The ID of the certificate. AWS IoT issues a default subject name for the certificate (for example, AWS IoT * Certificate). * </p> * * @param certificateId * The ID of the certificate. AWS IoT issues a default subject name for the certificate (for example, AWS IoT * Certificate). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateKeysAndCertificateResult withCertificateId(String certificateId) { setCertificateId(certificateId); return this; }
createKeysAndCertificateResult.setCertificateId(context.getUnmarshaller(String.class).unmarshall(context));
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; }
/** * <p> * The ID of the certificate. AWS IoT issues a default subject name for the certificate (for example, AWS IoT * Certificate). * </p> * * @param certificateId * The ID of the certificate. AWS IoT issues a default subject name for the certificate (for example, AWS IoT * Certificate). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateKeysAndCertificateResult withCertificateId(String certificateId) { setCertificateId(certificateId); 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; }
createKeysAndCertificateResult.setCertificateId(context.getUnmarshaller(String.class).unmarshall(context));