public void setDiagnostics(java.util.Collection<ValidateStateMachineDefinitionDiagnostic> diagnostics) {
        if (diagnostics == null) {
            this.diagnostics = null;
            return;
        }

        this.diagnostics = new java.util.ArrayList<ValidateStateMachineDefinitionDiagnostic>(diagnostics);
    }
<p>
If the result is <code>OK</code>, this field will be empty. When there are errors, this field will contain an
array of <b>Diagnostic</b> objects to help you troubleshoot.
</p>

@param diagnostics
       If the result is <code>OK</code>, this field will be empty. When there are errors, this field will contain
       an array of <b>Diagnostic</b> objects to help you troubleshoot.
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/model/ValidateStateMachineDefinitionResult.java