/** * <p> * The <code>ChangeToken</code> that you used to submit the <code>UpdateXssMatchSet</code> request. You can also use * this value to query the status of the request. For more information, see <a>GetChangeTokenStatus</a>. * </p> * * @param changeToken * The <code>ChangeToken</code> that you used to submit the <code>UpdateXssMatchSet</code> request. You can * also use this value to query the status of the request. For more information, see * <a>GetChangeTokenStatus</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateXssMatchSetResult withChangeToken(String changeToken) { setChangeToken(changeToken); return this; }
public UpdateXssMatchSetResult unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateXssMatchSetResult updateXssMatchSetResult = new UpdateXssMatchSetResult(); 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 updateXssMatchSetResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("ChangeToken", targetDepth)) { context.nextToken(); updateXssMatchSetResult.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 updateXssMatchSetResult; }
public UpdateXssMatchSetResult unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateXssMatchSetResult updateXssMatchSetResult = new UpdateXssMatchSetResult(); 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 updateXssMatchSetResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("ChangeToken", targetDepth)) { context.nextToken(); updateXssMatchSetResult.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 updateXssMatchSetResult; }