/** * <p> * When a response is generated, if there is more data to be listed, this parameter is present in the response and * contains the value to use for the <b>nextToken</b> parameter in a subsequent pagination request. If there is no * more data to be listed, this parameter is set to null. * </p> * * @param nextToken * When a response is generated, if there is more data to be listed, this parameter is present in the * response and contains the value to use for the <b>nextToken</b> parameter in a subsequent pagination * request. If there is no more data to be listed, this parameter is set to null. * @return Returns a reference to this object so that method calls can be chained together. */ public PreviewAgentsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
previewAgentsResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * When a response is generated, if there is more data to be listed, this parameter is present in the response and * contains the value to use for the <b>nextToken</b> parameter in a subsequent pagination request. If there is no * more data to be listed, this parameter is set to null. * </p> * * @param nextToken * When a response is generated, if there is more data to be listed, this parameter is present in the * response and contains the value to use for the <b>nextToken</b> parameter in a subsequent pagination * request. If there is no more data to be listed, this parameter is set to null. * @return Returns a reference to this object so that method calls can be chained together. */ public PreviewAgentsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
previewAgentsResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));