/** * <p> * Specifies the amount of time, in minutes, this device has to finish execution of this job. The timeout interval * can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The in progress timer can't be updated and will * apply to all job executions for the job. Whenever a job execution remains in the IN_PROGRESS status for longer * than this interval, the job execution will fail and switch to the terminal <code>TIMED_OUT</code> status. * </p> * * @param inProgressTimeoutInMinutes * Specifies the amount of time, in minutes, this device has to finish execution of this job. The timeout * interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The in progress timer can't be * updated and will apply to all job executions for the job. Whenever a job execution remains in the * IN_PROGRESS status for longer than this interval, the job execution will fail and switch to the terminal * <code>TIMED_OUT</code> status. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeoutConfig withInProgressTimeoutInMinutes(Long inProgressTimeoutInMinutes) { setInProgressTimeoutInMinutes(inProgressTimeoutInMinutes); return this; }
public TimeoutConfig unmarshall(JsonUnmarshallerContext context) throws Exception { TimeoutConfig timeoutConfig = new TimeoutConfig(); 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 null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("inProgressTimeoutInMinutes", targetDepth)) { context.nextToken(); timeoutConfig.setInProgressTimeoutInMinutes(context.getUnmarshaller(Long.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 timeoutConfig; }
public TimeoutConfig unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } TimeoutConfig timeoutConfig = new TimeoutConfig(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("inProgressTimeoutInMinutes")) { timeoutConfig.setInProgressTimeoutInMinutes(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return timeoutConfig; }
/** * <p> * Specifies the amount of time, in minutes, this device has to finish execution of this job. The timeout interval * can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The in progress timer can't be updated and will * apply to all job executions for the job. Whenever a job execution remains in the IN_PROGRESS status for longer * than this interval, the job execution will fail and switch to the terminal <code>TIMED_OUT</code> status. * </p> * * @param inProgressTimeoutInMinutes * Specifies the amount of time, in minutes, this device has to finish execution of this job. The timeout * interval can be anywhere between 1 minute and 7 days (1 to 10080 minutes). The in progress timer can't be * updated and will apply to all job executions for the job. Whenever a job execution remains in the * IN_PROGRESS status for longer than this interval, the job execution will fail and switch to the terminal * <code>TIMED_OUT</code> status. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeoutConfig withInProgressTimeoutInMinutes(Long inProgressTimeoutInMinutes) { setInProgressTimeoutInMinutes(inProgressTimeoutInMinutes); return this; }
public TimeoutConfig unmarshall(JsonUnmarshallerContext context) throws Exception { TimeoutConfig timeoutConfig = new TimeoutConfig(); 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 null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("inProgressTimeoutInMinutes", targetDepth)) { context.nextToken(); timeoutConfig.setInProgressTimeoutInMinutes(context.getUnmarshaller(Long.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 timeoutConfig; }
public TimeoutConfig unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } TimeoutConfig timeoutConfig = new TimeoutConfig(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("inProgressTimeoutInMinutes")) { timeoutConfig.setInProgressTimeoutInMinutes(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return timeoutConfig; }