public GetResourceShareAssociationsRequest withResourceArn(String resourceArn) {
        setResourceArn(resourceArn);
        return this;
    }
<p>
Specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon
Resource Name (ARN)</a> of a resource whose resource shares you want to retrieve.
</p>
<p>
You cannot specify this parameter if the association type is <code>PRINCIPAL</code>.
</p>

@param resourceArn
       Specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon
       Resource Name (ARN)</a> of a resource whose resource shares you want to retrieve.</p>
       <p>
       You cannot specify this parameter if the association type is <code>PRINCIPAL</code>.
@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/GetResourceShareAssociationsRequest.java