/** * <p> * When <code>Truncated</code> is true, this element is present and contains the value to use for the * <code>Marker</code> parameter in a subsequent request. * </p> * * @param nextMarker * When <code>Truncated</code> is true, this element is present and contains the value to use for the * <code>Marker</code> parameter in a subsequent request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysResult withNextMarker(String nextMarker) { setNextMarker(nextMarker); return this; }
listKeysResult.setNextMarker(context.getUnmarshaller(String.class).unmarshall(context));
public ListKeysResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListKeysResult listKeysResult = new ListKeysResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Keys")) { listKeysResult.setKeys(new ListUnmarshaller<KeyListEntry>( KeyListEntryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("NextMarker")) { listKeysResult.setNextMarker(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Truncated")) { listKeysResult.setTruncated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listKeysResult; }
/** * <p> * When <code>Truncated</code> is true, this element is present and contains the value to use for the * <code>Marker</code> parameter in a subsequent request. * </p> * * @param nextMarker * When <code>Truncated</code> is true, this element is present and contains the value to use for the * <code>Marker</code> parameter in a subsequent request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysResult withNextMarker(String nextMarker) { setNextMarker(nextMarker); return this; }
/** * <p> * When <code>Truncated</code> is true, this element is present and contains the value to use for the * <code>Marker</code> parameter in a subsequent request. * </p> * * @param nextMarker * When <code>Truncated</code> is true, this element is present and contains the value to use for the * <code>Marker</code> parameter in a subsequent request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListKeysResult withNextMarker(String nextMarker) { setNextMarker(nextMarker); return this; }
public ListKeysResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListKeysResult listKeysResult = new ListKeysResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Keys")) { listKeysResult.setKeys(new ListUnmarshaller<KeyListEntry>( KeyListEntryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("NextMarker")) { listKeysResult.setNextMarker(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Truncated")) { listKeysResult.setTruncated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listKeysResult; }
public ListKeysResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListKeysResult listKeysResult = new ListKeysResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Keys")) { listKeysResult.setKeys(new ListUnmarshaller<KeyListEntry>( KeyListEntryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("NextMarker")) { listKeysResult.setNextMarker(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Truncated")) { listKeysResult.setTruncated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listKeysResult; }
listKeysResult.setNextMarker(context.getUnmarshaller(String.class).unmarshall(context));
listKeysResult.setNextMarker(context.getUnmarshaller(String.class).unmarshall(context));