/** * <p> * The ID of the key used during encryption. * </p> * * @param keyId * The ID of the key used during encryption. * @return Returns a reference to this object so that method calls can be chained together. */ public EncryptResult withKeyId(String keyId) { setKeyId(keyId); return this; }
encryptResult.setKeyId(context.getUnmarshaller(String.class).unmarshall(context));
public EncryptResult unmarshall(JsonUnmarshallerContext context) throws Exception { EncryptResult encryptResult = new EncryptResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("CiphertextBlob")) { encryptResult.setCiphertextBlob(ByteBufferJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("KeyId")) { encryptResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return encryptResult; }
/** * <p> * The ID of the key used during encryption. * </p> * * @param keyId * The ID of the key used during encryption. * @return Returns a reference to this object so that method calls can be chained together. */ public EncryptResult withKeyId(String keyId) { setKeyId(keyId); return this; }
/** * <p> * The ID of the key used during encryption. * </p> * * @param keyId * The ID of the key used during encryption. * @return Returns a reference to this object so that method calls can be chained together. */ public EncryptResult withKeyId(String keyId) { setKeyId(keyId); return this; }
public EncryptResult unmarshall(JsonUnmarshallerContext context) throws Exception { EncryptResult encryptResult = new EncryptResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("CiphertextBlob")) { encryptResult.setCiphertextBlob(ByteBufferJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("KeyId")) { encryptResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return encryptResult; }
public EncryptResult unmarshall(JsonUnmarshallerContext context) throws Exception { EncryptResult encryptResult = new EncryptResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("CiphertextBlob")) { encryptResult.setCiphertextBlob(ByteBufferJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("KeyId")) { encryptResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return encryptResult; }
encryptResult.setKeyId(context.getUnmarshaller(String.class).unmarshall(context));
encryptResult.setKeyId(context.getUnmarshaller(String.class).unmarshall(context));