/** * <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 ListAliasesResult withNextMarker(String nextMarker) { setNextMarker(nextMarker); return this; }
listAliasesResult.setNextMarker(context.getUnmarshaller(String.class).unmarshall(context));
public ListAliasesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListAliasesResult listAliasesResult = new ListAliasesResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Aliases")) { listAliasesResult.setAliases(new ListUnmarshaller<AliasListEntry>( AliasListEntryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("NextMarker")) { listAliasesResult.setNextMarker(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Truncated")) { listAliasesResult.setTruncated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listAliasesResult; }
/** * <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 ListAliasesResult 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 ListAliasesResult withNextMarker(String nextMarker) { setNextMarker(nextMarker); return this; }
public ListAliasesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListAliasesResult listAliasesResult = new ListAliasesResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Aliases")) { listAliasesResult.setAliases(new ListUnmarshaller<AliasListEntry>( AliasListEntryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("NextMarker")) { listAliasesResult.setNextMarker(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Truncated")) { listAliasesResult.setTruncated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listAliasesResult; }
public ListAliasesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListAliasesResult listAliasesResult = new ListAliasesResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Aliases")) { listAliasesResult.setAliases(new ListUnmarshaller<AliasListEntry>( AliasListEntryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else if (name.equals("NextMarker")) { listAliasesResult.setNextMarker(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Truncated")) { listAliasesResult.setTruncated(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listAliasesResult; }
listAliasesResult.setNextMarker(context.getUnmarshaller(String.class).unmarshall(context));
listAliasesResult.setNextMarker(context.getUnmarshaller(String.class).unmarshall(context));