@Override
    public RejectInvitationResult rejectInvitation(RejectInvitationRequest request) {
        request = beforeClientExecution(request);
        return executeRejectInvitation(request);
    }
<p>
Rejects an invitation to contribute the account data to a behavior graph. This operation must be called by an
invited member account that has the <code>INVITED</code> status.
</p>
<p>
<code>RejectInvitation</code> cannot be called by an organization account in the organization behavior graph. In
the organization behavior graph, organization accounts do not receive an invitation.
</p>

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