public PublishVersionResult withRole(String role) {
        setRole(role);
        return this;
    }
<p>
The function's execution role.
</p>

@param role
       The function's execution role.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/PublishVersionResult.java