/** * <p> * A flag that indicates whether there are more items in the list. When this value is true, the list in this * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in this response * to the <code>Marker</code> parameter in a subsequent request. * </p> * * @param truncated * A flag that indicates whether there are more items in the list. When this value is true, the list in this * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in this * response to 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 withTruncated(Boolean truncated) { setTruncated(truncated); return this; }
listKeysResult.setTruncated(context.getUnmarshaller(Boolean.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> * A flag that indicates whether there are more items in the list. When this value is true, the list in this * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in this response * to the <code>Marker</code> parameter in a subsequent request. * </p> * * @param truncated * A flag that indicates whether there are more items in the list. When this value is true, the list in this * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in this * response to 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 withTruncated(Boolean truncated) { setTruncated(truncated); return this; }
/** * <p> * A flag that indicates whether there are more items in the list. When this value is true, the list in this * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in this response * to the <code>Marker</code> parameter in a subsequent request. * </p> * * @param truncated * A flag that indicates whether there are more items in the list. When this value is true, the list in this * response is truncated. To get more items, pass the value of the <code>NextMarker</code> element in this * response to 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 withTruncated(Boolean truncated) { setTruncated(truncated); 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.setTruncated(context.getUnmarshaller(Boolean.class).unmarshall(context));
listKeysResult.setTruncated(context.getUnmarshaller(Boolean.class).unmarshall(context));