/** * <p> * The unique identifier of the master key for which deletion is canceled. * </p> * * @param keyId * The unique identifier of the master key for which deletion is canceled. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelKeyDeletionResult withKeyId(String keyId) { setKeyId(keyId); return this; }
public CancelKeyDeletionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CancelKeyDeletionResult cancelKeyDeletionResult = new CancelKeyDeletionResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return cancelKeyDeletionResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("KeyId", targetDepth)) { context.nextToken(); cancelKeyDeletionResult.setKeyId(context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return cancelKeyDeletionResult; }
public CancelKeyDeletionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CancelKeyDeletionResult cancelKeyDeletionResult = new CancelKeyDeletionResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("KeyId")) { cancelKeyDeletionResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return cancelKeyDeletionResult; }
/** * <p> * The unique identifier of the master key for which deletion is canceled. * </p> * * @param keyId * The unique identifier of the master key for which deletion is canceled. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelKeyDeletionResult withKeyId(String keyId) { setKeyId(keyId); return this; }
/** * <p> * The unique identifier of the master key for which deletion is canceled. * </p> * * @param keyId * The unique identifier of the master key for which deletion is canceled. * @return Returns a reference to this object so that method calls can be chained together. */ public CancelKeyDeletionResult withKeyId(String keyId) { setKeyId(keyId); return this; }
public CancelKeyDeletionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CancelKeyDeletionResult cancelKeyDeletionResult = new CancelKeyDeletionResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("KeyId")) { cancelKeyDeletionResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return cancelKeyDeletionResult; }
public CancelKeyDeletionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CancelKeyDeletionResult cancelKeyDeletionResult = new CancelKeyDeletionResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("KeyId")) { cancelKeyDeletionResult.setKeyId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return cancelKeyDeletionResult; }
public CancelKeyDeletionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CancelKeyDeletionResult cancelKeyDeletionResult = new CancelKeyDeletionResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return cancelKeyDeletionResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("KeyId", targetDepth)) { context.nextToken(); cancelKeyDeletionResult.setKeyId(context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return cancelKeyDeletionResult; }
public CancelKeyDeletionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CancelKeyDeletionResult cancelKeyDeletionResult = new CancelKeyDeletionResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return cancelKeyDeletionResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("KeyId", targetDepth)) { context.nextToken(); cancelKeyDeletionResult.setKeyId(context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return cancelKeyDeletionResult; }