public DBProxyTarget withRole(TargetRole role) {
        this.role = role.toString();
        return this;
    }
<p>
A value that indicates whether the target of the proxy can be used for read/write or read-only operations.
</p>

@param role
       A value that indicates whether the target of the proxy can be used for read/write or read-only operations.
@return Returns a reference to this object so that method calls can be chained together.
@see TargetRole
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/DBProxyTarget.java