public ImportImageRequest withRoleName(String roleName) {
        setRoleName(roleName);
        return this;
    }
<p>
The name of the role to use when not using the default role, 'vmimport'.
</p>

@param roleName
       The name of the role to use when not using the default role, 'vmimport'.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ImportImageRequest.java