public GetTrainingDatasetResult withRoleArn(String roleArn) {
        setRoleArn(roleArn);
        return this;
    }
<p>
The IAM role used to read the training data.
</p>

@param roleArn
       The IAM role used to read the training data.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cleanroomsml/src/main/java/com/amazonaws/services/cleanroomsml/model/GetTrainingDatasetResult.java