public ValidateStateMachineDefinitionResult withResult(String result) {
        setResult(result);
        return this;
    }
<p>
The result value will be <code>OK</code> when no syntax errors are found, or <code>FAIL</code> if the workflow
definition does not pass verification.
</p>

@param result
       The result value will be <code>OK</code> when no syntax errors are found, or <code>FAIL</code> if the
       workflow definition does not pass verification.
@return Returns a reference to this object so that method calls can be chained together.
@see ValidateStateMachineDefinitionResultCode
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/model/ValidateStateMachineDefinitionResult.java