/** * <p> * The <code>ChangeToken</code> that you used in the request. Use this value in a <code>GetChangeTokenStatus</code> * request to get the current status of the request. * </p> * * @param changeToken * The <code>ChangeToken</code> that you used in the request. Use this value in a * <code>GetChangeTokenStatus</code> request to get the current status of the request. * @return Returns a reference to this object so that method calls can be chained together. */ public GetChangeTokenResult withChangeToken(String changeToken) { setChangeToken(changeToken); return this; }
public GetChangeTokenResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetChangeTokenResult getChangeTokenResult = new GetChangeTokenResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return getChangeTokenResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("ChangeToken", targetDepth)) { context.nextToken(); getChangeTokenResult.setChangeToken(context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return getChangeTokenResult; }
public GetChangeTokenResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetChangeTokenResult getChangeTokenResult = new GetChangeTokenResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return getChangeTokenResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("ChangeToken", targetDepth)) { context.nextToken(); getChangeTokenResult.setChangeToken(context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return getChangeTokenResult; }