/** * <p> * The reencrypted data. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is * not encoded. * </p> * <p> * The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. * </p> * <p> * Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will * be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or * ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future * major version of the SDK. * </p> * * @param ciphertextBlob * The reencrypted data. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, * it is not encoded. * @return Returns a reference to this object so that method calls can be chained together. */ public ReEncryptResult withCiphertextBlob(java.nio.ByteBuffer ciphertextBlob) { setCiphertextBlob(ciphertextBlob); return this; }
if (context.testExpression("CiphertextBlob", targetDepth)) { context.nextToken(); reEncryptResult.setCiphertextBlob(context.getUnmarshaller(java.nio.ByteBuffer.class).unmarshall(context));
public ReEncryptResult unmarshall(JsonUnmarshallerContext context) throws Exception { ReEncryptResult reEncryptResult = new ReEncryptResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("CiphertextBlob")) { reEncryptResult.setCiphertextBlob(ByteBufferJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("SourceKeyId")) { reEncryptResult.setSourceKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("KeyId")) { reEncryptResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return reEncryptResult; }
/** * <p> * The reencrypted data. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not * encoded. * </p> * <p> * The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. * </p> * <p> * Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will * be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or * ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future * major version of the SDK. * </p> * * @param ciphertextBlob * The reencrypted data. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it * is not encoded. * @return Returns a reference to this object so that method calls can be chained together. */ public ReEncryptResult withCiphertextBlob(java.nio.ByteBuffer ciphertextBlob) { setCiphertextBlob(ciphertextBlob); return this; }
/** * <p> * The reencrypted data. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, it is * not encoded. * </p> * <p> * The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. * </p> * <p> * Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will * be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or * ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future * major version of the SDK. * </p> * * @param ciphertextBlob * The reencrypted data. When you use the HTTP API or the AWS CLI, the value is Base64-encdoded. Otherwise, * it is not encoded. * @return Returns a reference to this object so that method calls can be chained together. */ public ReEncryptResult withCiphertextBlob(java.nio.ByteBuffer ciphertextBlob) { setCiphertextBlob(ciphertextBlob); return this; }
public ReEncryptResult unmarshall(JsonUnmarshallerContext context) throws Exception { ReEncryptResult reEncryptResult = new ReEncryptResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("CiphertextBlob")) { reEncryptResult.setCiphertextBlob(ByteBufferJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("SourceKeyId")) { reEncryptResult.setSourceKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("KeyId")) { reEncryptResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return reEncryptResult; }
public ReEncryptResult unmarshall(JsonUnmarshallerContext context) throws Exception { ReEncryptResult reEncryptResult = new ReEncryptResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("CiphertextBlob")) { reEncryptResult.setCiphertextBlob(ByteBufferJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("SourceKeyId")) { reEncryptResult.setSourceKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("KeyId")) { reEncryptResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return reEncryptResult; }
if (context.testExpression("CiphertextBlob", targetDepth)) { context.nextToken(); reEncryptResult.setCiphertextBlob(context.getUnmarshaller(java.nio.ByteBuffer.class).unmarshall(context));
if (context.testExpression("CiphertextBlob", targetDepth)) { context.nextToken(); reEncryptResult.setCiphertextBlob(context.getUnmarshaller(java.nio.ByteBuffer.class).unmarshall(context));