public Integer saveCluster(ClusterRequest request) {
        Preconditions.expectNotBlank(request.getName(), ErrorCodeEnum.INVALID_PARAMETER,
                "cluster name should not be empty");
        Preconditions.expectNotBlank(request.getType(), ErrorCodeEnum.INVALID_PARAMETER,
                "cluster type should not be empty");
        Preconditions.expectNotBlank(request.getClusterTags(), ErrorCodeEnum.INVALID_PARAMETER,
                "cluster tags should not be empty");
        Response<Integer> clusterIndexResponse = ClientUtils.executeHttpCall(inlongClusterApi.save(request));
        ClientUtils.assertRespSuccess(clusterIndexResponse);
        return clusterIndexResponse.getData();
    }
Save component cluster for Inlong.

@param request cluster create request
@return clusterIndex
inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/inner/client/InlongClusterClient.java