/** * <p> * The name of a key attribute. * </p> * * @param attributeName * The name of a key attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public KeySchemaElement withAttributeName(String attributeName) { setAttributeName(attributeName); return this; }
setAttributeName(attributeName); setKeyType(keyType);
setAttributeName(attributeName); setKeyType(keyType.toString());
if (context.testExpression("AttributeName", targetDepth)) { context.nextToken(); keySchemaElement.setAttributeName(context.getUnmarshaller(String.class).unmarshall(context));
setAttributeName(attributeName); setKeyType(keyType);
setAttributeName(attributeName); setKeyType(keyType.toString());
/** * <p> * The name of a key attribute. * </p> * * @param attributeName * The name of a key attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public KeySchemaElement withAttributeName(String attributeName) { setAttributeName(attributeName); return this; }
public KeySchemaElement unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } KeySchemaElement keySchemaElement = new KeySchemaElement(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("AttributeName")) { keySchemaElement.setAttributeName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("KeyType")) { keySchemaElement.setKeyType(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return keySchemaElement; }
setAttributeName(attributeName); setKeyType(keyType);
setAttributeName(attributeName); setKeyType(keyType.toString());
if (context.testExpression("AttributeName", targetDepth)) { context.nextToken(); keySchemaElement.setAttributeName(context.getUnmarshaller(String.class).unmarshall(context));