public DBProxyEndpoint withTargetRole(DBProxyEndpointTargetRole targetRole) {
        this.targetRole = targetRole.toString();
        return this;
    }
<p>
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
</p>

@param targetRole
       A value that indicates whether the DB proxy endpoint 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 DBProxyEndpointTargetRole
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/DBProxyEndpoint.java