JobAction actionInstance = new JobAction();
jobInstance.setAction(actionInstance);
JsonNode typeValue = actionValue2.get("type");
if (typeValue != null) {
JobActionType typeInstance;
typeInstance = SchedulerClientImpl.parseJobActionType(typeValue.getTextValue());
actionInstance.setType(typeInstance);
}
JsonNode retryPolicyValue2 = actionValue2.get("retryPolicy");
if (retryPolicyValue2 != null) {
RetryPolicy retryPolicyInstance = new RetryPolicy();
actionInstance.setRetryPolicy(retryPolicyInstance);
JsonNode retryTypeValue = retryPolicyValue2.get("retryType");
if (retryTypeValue != null) {
RetryType retryTypeInstance;
retryTypeInstance = SchedulerClientImpl.parseRetryType(retryTypeValue.getTextValue());
retryPolicyInstance.setRetryType(retryTypeInstance);
}
JsonNode retryIntervalValue = retryPolicyValue2.get("retryInterval");
if (retryIntervalValue != null) {
Duration retryIntervalInstance;
retryIntervalInstance = TimeSpan8601Converter.parse(retryIntervalValue.getTextValue());
retryPolicyInstance.setRetryInterval(retryIntervalInstance);
}
JsonNode retryCountValue = retryPolicyValue2.get("retryCount");
if (retryCountValue != null) {
int retryCountInstance;
retryCountInstance = retryCountValue.getIntValue();
retryPolicyInstance.setRetryCount(retryCountInstance);
}
}
JsonNode errorActionValue2 = actionValue2.get("errorAction");
if (errorActionValue2 != null) {
JobErrorAction errorActionInstance = new JobErrorAction();
actionInstance.setErrorAction(errorActionInstance);
JsonNode typeValue2 = errorActionValue2.get("type");
if (typeValue2 != null) {
JobActionType typeInstance2;
typeInstance2 = SchedulerClientImpl.parseJobActionType(typeValue2.getTextValue());
errorActionInstance.setType(typeInstance2);
}
JsonNode requestValue3 = errorActionValue2.get("request");