/** * <p> * The <a>LoggingConfiguration</a> that you submitted in the request. * </p> * * @param loggingConfiguration * The <a>LoggingConfiguration</a> that you submitted in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public PutLoggingConfigurationResult withLoggingConfiguration(LoggingConfiguration loggingConfiguration) { setLoggingConfiguration(loggingConfiguration); return this; }
public PutLoggingConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception { PutLoggingConfigurationResult putLoggingConfigurationResult = new PutLoggingConfigurationResult(); 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 putLoggingConfigurationResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("LoggingConfiguration", targetDepth)) { context.nextToken(); putLoggingConfigurationResult.setLoggingConfiguration(LoggingConfigurationJsonUnmarshaller.getInstance().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 putLoggingConfigurationResult; }
public PutLoggingConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception { PutLoggingConfigurationResult putLoggingConfigurationResult = new PutLoggingConfigurationResult(); 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 putLoggingConfigurationResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("LoggingConfiguration", targetDepth)) { context.nextToken(); putLoggingConfigurationResult.setLoggingConfiguration(LoggingConfigurationJsonUnmarshaller.getInstance().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 putLoggingConfigurationResult; }