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