/** * <p> * Unique identifier of the CMK used to originally encrypt the data. * </p> * * @param sourceKeyId * Unique identifier of the CMK used to originally encrypt the data. * @return Returns a reference to this object so that method calls can be chained together. */ public ReEncryptResult withSourceKeyId(String sourceKeyId) { setSourceKeyId(sourceKeyId); return this; }
reEncryptResult.setSourceKeyId(context.getUnmarshaller(String.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> * Unique identifier of the CMK used to originally encrypt the data. * </p> * * @param sourceKeyId * Unique identifier of the CMK used to originally encrypt the data. * @return Returns a reference to this object so that method calls can be chained together. */ public ReEncryptResult withSourceKeyId(String sourceKeyId) { setSourceKeyId(sourceKeyId); return this; }
/** * <p> * Unique identifier of the CMK used to originally encrypt the data. * </p> * * @param sourceKeyId * Unique identifier of the CMK used to originally encrypt the data. * @return Returns a reference to this object so that method calls can be chained together. */ public ReEncryptResult withSourceKeyId(String sourceKeyId) { setSourceKeyId(sourceKeyId); 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; }
reEncryptResult.setSourceKeyId(context.getUnmarshaller(String.class).unmarshall(context));
reEncryptResult.setSourceKeyId(context.getUnmarshaller(String.class).unmarshall(context));