public ListResourcesRequest withPrincipal(String principal) {
        setPrincipal(principal);
        return this;
    }
<p>
Specifies that you want to list only the resource shares that are associated with the specified principal.
</p>

@param principal
       Specifies that you want to list only the resource shares that are associated with the specified principal.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ram/src/main/java/com/amazonaws/services/ram/model/ListResourcesRequest.java