public CreateTrailResult withName(String name) {
        setName(name);
        return this;
    }
<p>
Specifies the name of the trail.
</p>

@param name
       Specifies the name of the trail.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/CreateTrailResult.java