@Override
    public ListInvitationsResult listInvitations(ListInvitationsRequest request) {
        request = beforeClientExecution(request);
        return executeListInvitations(request);
    }
<p>
Retrieves the list of open and accepted behavior graph invitations for the member account. This operation can
only be called by an invited member account.
</p>
<p>
Open invitations are invitations that the member account has not responded to.
</p>
<p>
The results do not include behavior graphs for which the member account declined the invitation. The results also
do not include behavior graphs that the member account resigned from or was removed from.
</p>

@param listInvitationsRequest
@return Result of the ListInvitations operation returned by the service.
@throws AccessDeniedException
        The request issuer does not have permission to access this resource or perform this operation.
@throws InternalServerException
        The request was valid but failed because of a problem with the service.
@throws ValidationException
        The request parameters are invalid.
@sample AmazonDetective.ListInvitations
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListInvitations" target="_top">AWS API
     Documentation</a>
aws-java-sdk-detective/src/main/java/com/amazonaws/services/detective/AmazonDetectiveClient.java