public ValidateStateMachineDefinitionRequest withDefinition(String definition) {
        setDefinition(definition);
        return this;
    }
<p>
The Amazon States Language definition of the state machine. For more information, see <a
href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon States
Language</a> (ASL).
</p>

@param definition
       The Amazon States Language definition of the state machine. For more information, see <a
       href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon
       States Language</a> (ASL).
@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/ValidateStateMachineDefinitionRequest.java