/** * <p> * ARN of the key used to perform the decryption. This value is returned if no errors are encountered during the * operation. * </p> * * @param keyId * ARN of the key used to perform the decryption. This value is returned if no errors are encountered during * the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public DecryptResult withKeyId(String keyId) { setKeyId(keyId); return this; }
if (context.testExpression("KeyId", targetDepth)) { context.nextToken(); decryptResult.setKeyId(context.getUnmarshaller(String.class).unmarshall(context));
public DecryptResult unmarshall(JsonUnmarshallerContext context) throws Exception { DecryptResult decryptResult = new DecryptResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("KeyId")) { decryptResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Plaintext")) { decryptResult.setPlaintext(ByteBufferJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return decryptResult; }
/** * <p> * ARN of the key used to perform the decryption. This value is returned if no errors are encountered during the * operation. * </p> * * @param keyId * ARN of the key used to perform the decryption. This value is returned if no errors are encountered during * the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public DecryptResult withKeyId(String keyId) { setKeyId(keyId); return this; }
/** * <p> * ARN of the key used to perform the decryption. This value is returned if no errors are encountered during the * operation. * </p> * * @param keyId * ARN of the key used to perform the decryption. This value is returned if no errors are encountered during * the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public DecryptResult withKeyId(String keyId) { setKeyId(keyId); return this; }
public DecryptResult unmarshall(JsonUnmarshallerContext context) throws Exception { DecryptResult decryptResult = new DecryptResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("KeyId")) { decryptResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Plaintext")) { decryptResult.setPlaintext(ByteBufferJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return decryptResult; }
public DecryptResult unmarshall(JsonUnmarshallerContext context) throws Exception { DecryptResult decryptResult = new DecryptResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("KeyId")) { decryptResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Plaintext")) { decryptResult.setPlaintext(ByteBufferJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return decryptResult; }
if (context.testExpression("KeyId", targetDepth)) { context.nextToken(); decryptResult.setKeyId(context.getUnmarshaller(String.class).unmarshall(context));
if (context.testExpression("KeyId", targetDepth)) { context.nextToken(); decryptResult.setKeyId(context.getUnmarshaller(String.class).unmarshall(context));