public ValidateStateMachineDefinitionDiagnostic withCode(String code) {
        setCode(code);
        return this;
    }
<p>
Identifying code for the diagnostic.
</p>

@param code
       Identifying code for the diagnostic.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/model/ValidateStateMachineDefinitionDiagnostic.java