/** * <p> * The log level. * </p> * * @param logLevel * The log level. * @return Returns a reference to this object so that method calls can be chained together. * @see LogLevel */ public LoggingOptionsPayload withLogLevel(String logLevel) { setLogLevel(logLevel); return this; }
loggingOptionsPayload.setLogLevel(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The log level. * </p> * * @param logLevel * The log level. * @return Returns a reference to this object so that method calls can be chained together. * @see LogLevel */ public LoggingOptionsPayload withLogLevel(String logLevel) { setLogLevel(logLevel); return this; }
public LoggingOptionsPayload unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } LoggingOptionsPayload loggingOptionsPayload = new LoggingOptionsPayload(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("roleArn")) { loggingOptionsPayload.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("logLevel")) { loggingOptionsPayload.setLogLevel(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return loggingOptionsPayload; }
public LoggingOptionsPayload unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } LoggingOptionsPayload loggingOptionsPayload = new LoggingOptionsPayload(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("roleArn")) { loggingOptionsPayload.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("logLevel")) { loggingOptionsPayload.setLogLevel(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return loggingOptionsPayload; }
loggingOptionsPayload.setLogLevel(context.getUnmarshaller(String.class).unmarshall(context));